[gthumb] set the expand flag to toolbars and window content



commit 94daa25a5813f9642f98d7eb07c2391ec3a917c1
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Nov 1 18:00:10 2011 +0100

    set the expand flag to toolbars and window content

 gthumb/gth-window.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-window.c b/gthumb/gth-window.c
index 362d50a..356346c 100644
--- a/gthumb/gth-window.c
+++ b/gthumb/gth-window.c
@@ -322,6 +322,7 @@ gth_window_attach_toolbar (GthWindow *window,
 
 	_gtk_container_remove_children (GTK_CONTAINER (window->priv->toolbars[page]), NULL, NULL);
 	gtk_style_context_add_class (gtk_widget_get_style_context (child), GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
+	gtk_widget_set_hexpand (child, TRUE);
 	gtk_container_add (GTK_CONTAINER (window->priv->toolbars[page]), child);
 }
 
@@ -338,6 +339,7 @@ gth_window_attach_content (GthWindow *window,
 	g_return_if_fail (GTK_IS_WIDGET (child));
 
 	_gtk_container_remove_children (GTK_CONTAINER (window->priv->contents[page]), NULL, NULL);
+	gtk_widget_set_hexpand (child, TRUE);
 	gtk_container_add (GTK_CONTAINER (window->priv->contents[page]), child);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]