GNOME Bugzilla – Bug 128636
gnome-panel should use the new gtk+ 2.3 file chooser
Last modified: 2004-12-22 21:47:04 UTC
gnome-panel should use the new gtk+ 2.3 file chooser in the run dialog.
Created attachment 22142 [details] [review] This patch replaces GtkFileSelection with GtkFileChooser.
Adding the PATCH keyword so that these show up. Thanks a lot, jpetersen.
Looks ok, except for that: gtk_window_set_default_size (GTK_WINDOW (chooser), 600, 400); I don't think this should be hard-coded. You should use gdk_screen_get_width/height and do some maths with it. Maybe something like: #define FILE_CHOOSER_MAX_WIDTH 600 screen_width = gdk_screen_get_width (gtk_widget_get_screen (widget)); width = MIN (FILE_CHOOSER_MAX_WIDTH, 3 * (screen_width / 4))
Actually, I'd just remove the set_default_size() thing. If it looks broken, then that's a gtk+ bug.
The patch in http://bugzilla.gnome.org/show_bug.cgi?id=129020 should fix part of this. Jan-Arne is also going to look into fixing vertical sizing. So, yes, the patch for gnome-panel should not have any set_default_size() calls.
Ok, I committed a slightly modified version of this patch. Thanks