don't show the horizontal scrollbar if it's not needed.

2008-01-28  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/keyboard-shortcuts-dialog.c
	(keyboard_shortcuts_dialog_new): don't show the horizontal
	scrollbar if it's not needed.


svn path=/trunk/; revision=24731
This commit is contained in:
Michael Natterer
2008-01-28 16:47:17 +00:00
committed by Michael Natterer
parent 8c30b1cda5
commit 343d0e83d5
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2008-01-28 Michael Natterer <mitch@gimp.org>
* app/dialogs/keyboard-shortcuts-dialog.c
(keyboard_shortcuts_dialog_new): don't show the horizontal
scrollbar if it's not needed.
2008-01-28 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell.[ch] (gimp_display_shell_snap_coords):

View File

@ -67,6 +67,8 @@ keyboard_shortcuts_dialog_new (Gimp *gimp)
gtk_widget_show (vbox);
scrolled_window = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_window),
GTK_SHADOW_IN);
gtk_box_pack_start (GTK_BOX (vbox), scrolled_window, TRUE, TRUE, 0);