After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 331436 - Preferences Dialog Categories Tree needs a scrollbar
Preferences Dialog Categories Tree needs a scrollbar
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: User Interface
2.3.x
Other All
: Normal minor
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2006-02-16 17:25 UTC by Alastair M. Robinson
Modified: 2008-01-15 14:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alastair M. Robinson 2006-02-16 17:25:58 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:
Comment 1 Sven Neumann 2006-02-17 06:57:13 UTC
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.
Comment 2 Sven Neumann 2006-02-17 07:01:16 UTC
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.