changeset 1807:3a2aff957816

Allow scrollview to grow when generic dialog is resized (ie. Metadata write ? dialog). Do not force scrollbar if not needed.
author zas_
date Sat, 27 Feb 2010 23:31:07 +0000
parents 022456247824
children 6c61c246506b
files src/ui_utildlg.c src/utilops.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ui_utildlg.c	Sat Feb 27 20:35:26 2010 +0000
+++ b/src/ui_utildlg.c	Sat Feb 27 23:31:07 2010 +0000
@@ -178,7 +178,7 @@
 	GtkWidget *vbox;
 	GtkWidget *label;
 
-	hbox = pref_box_new(gd->vbox, FALSE, GTK_ORIENTATION_HORIZONTAL, PREF_PAD_SPACE);
+	hbox = pref_box_new(gd->vbox, TRUE, GTK_ORIENTATION_HORIZONTAL, PREF_PAD_SPACE);
 	if (icon_stock_id)
 		{
 		GtkWidget *image;
--- a/src/utilops.c	Sat Feb 27 20:35:26 2010 +0000
+++ b/src/utilops.c	Sat Feb 27 23:31:07 2010 +0000
@@ -440,7 +440,7 @@
 	scrolled = gtk_scrolled_window_new(NULL, NULL);
 	gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolled), GTK_SHADOW_IN);
 	gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled),
-				       GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
+				       GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
 	gtk_box_pack_start(GTK_BOX(box), scrolled, TRUE, TRUE, 0);
 	gtk_widget_show(scrolled);