[879] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] [patch] for A.Bridgett's Bug#1237 (fwd)

daemon@ATHENA.MIT.EDU (Ian Main)
Mon Sep 1 01:31:19 1997

Date: Sun, 31 Aug 1997 22:33:08 -0700 (PDT)
From: Ian Main <slow@intergate.bc.ca>
Reply-To: Ian Main <slow@intergate.bc.ca>
To: gtk-list@redhat.com
Resent-From: gtk-list@redhat.com


Thought maybe this would be of interest...

---------- Forwarded message ----------
Date: Sun, 31 Aug 1997 17:27:13 -0700 (PDT)
From: Kevin Turner <kevint@aracnet.com>
Reply-To: kevint@poboxes.com
To: gimp-developer@scam.xcf.berkeley.edu
Subject: [gimp-devel] [patch] for A.Bridgett's Bug#1237


Now this ain't a real *bug*, just a cosmetic inconvience, but...

Problem: 
	File Open dialog handles resizes poorly (Open Options frame
needlessly grabs more space).  

Solution:
	Change container_add to a box_pack, setting expand and fill
flags to false.  (I'm no gtk_guru, so I don't know if there's a reason
to *not* do this, but it WorksForMe.)

Patch follows (I like the one-line patches...):

--- app/fileops.c.prekev        Sun Aug 31 16:14:36 1997
+++ app/fileops.c       Sun Aug 31 17:13:56 1997
@@ -509,7 +509,7 @@ file_open_callback (GtkWidget *w,
       gtk_option_menu_set_menu (GTK_OPTION_MENU (option_menu), load_menu);
     }

-  gtk_container_add (GTK_CONTAINER (GTK_FILE_SELECTION (filesel)->main_vbox), open_options);
+  gtk_box_pack_end (GTK_BOX (GTK_FILE_SELECTION (filesel)->main_vbox), open_options,FALSE, FALSE, 5);

   load_file_proc = last_load_file_proc;
   last_load_file_proc = NULL;




--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post