From: Jim Evins Date: Sat, 12 Jun 2010 01:53:49 +0000 (-0400) Subject: Do not explicitly set sidebar size. X-Git-Tag: glabels-2_3_1~232 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fe7a2fbf407047c5d69ccc93e9d5a6cb92d08871;p=glabels Do not explicitly set sidebar size. Use 2 sizegroups to automatically fix sidebar size based on the size of the widgets it contains -- even hidden ones. The width was previously set explicitly to prevent the sidebar from changing size whenever objects are selected and unselected. This has been problematic for compatability with different themes, fonts, and translations. --- diff --git a/data/ui/object-editor.ui b/data/ui/object-editor.ui index 9bd35e53..395882f9 100644 --- a/data/ui/object-editor.ui +++ b/data/ui/object-editor.ui @@ -54,7 +54,6 @@ True True True - True True @@ -2238,4 +2237,24 @@ 1 10 + + both + + + + + + + + + + + + + + + + + + diff --git a/src/object-editor.c b/src/object-editor.c index dfc44fe5..c792e7c2 100644 --- a/src/object-editor.c +++ b/src/object-editor.c @@ -118,7 +118,7 @@ gl_object_editor_init (glObjectEditor *editor) "adjustment4", "adjustment5", "adjustment6", "adjustment7", "adjustment8", "adjustment9", "adjustment10", "adjustment11", "adjustment12", - "adjustment13", + "adjustment13", "page_sizegroup", "width_sizegroup", NULL }; GError *error = NULL; gchar *s; diff --git a/src/ui-sidebar.c b/src/ui-sidebar.c index 7042ef92..60a17755 100644 --- a/src/ui-sidebar.c +++ b/src/ui-sidebar.c @@ -123,8 +123,6 @@ gl_ui_sidebar_new (void) sidebar = g_object_new (gl_ui_sidebar_get_type (), NULL); - gtk_widget_set_size_request (GTK_WIDGET (sidebar), DEFAULT_SIDEBAR_WIDTH, -1); - gl_ui_sidebar_construct (sidebar); gl_debug (DEBUG_UI, "END");