GNOME Bugzilla – Bug 331436
Preferences Dialog Categories Tree needs a scrollbar
Last modified: 2008-01-15 14:05:44 UTC
If one expands the "Folders" part of the Categories Tree in the preferences dialog, the dialog expands to fit the entire list, and (using the stock Mandriva theme) becomes too large for medium-resolution screens (1024x768). This can be fixed just by using a gtk_scrolled_window instead of a gtk_frame in app/dialogs/preferences-dialog.c, like so: 1224,1225c1224,1226 < frame = gtk_frame_new (NULL); < gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN); --- > frame = gtk_scrolled_window_new (NULL, NULL); > gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (frame),GTK_SHADOW_ETCHED_IN); > gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (frame),GTK_POLICY_NEVER,GTK_POLICY_AUTOMATIC); Other information:
If you want to provide patches, please submit them in unified diff format and attach them to the bug-report instead of pasting into the comment field. In this particular case though, a patch wasn't needed at all.
Actually, the proper fix would be to overhaul the whole dialog. That is long overdue. But for now, let's use a scrolled window as you suggested. 2006-02-17 Sven Neumann <sven@gimp.org> * app/dialogs/preferences-dialog.c: use a scrolled window as suggested in bug #331436.