]> git.sur5r.net Git - glabels/commitdiff
Do not expand object editor vertically.
authorJim Evins <evins@snaught.com>
Mon, 18 Oct 2010 00:49:58 +0000 (20:49 -0400)
committerJim Evins <evins@snaught.com>
Mon, 18 Oct 2010 00:49:58 +0000 (20:49 -0400)
Gtk3 has new behavior for expansion of widgets.  This commit takes care of
the most obvious case of this new behavior.  Additional cases still need to
be addressed in the object-editor.ui file.

src/ui-sidebar.c

index d23d5a1ecbd4b1bcc14295217caf4187695c63e2..68952315ec50ba427f9677f9ded8b701e2258830 100644 (file)
@@ -141,7 +141,8 @@ gl_ui_sidebar_construct (glUISidebar       *sidebar)
        sidebar->priv->editor = gl_object_editor_new ();
        gtk_widget_show (sidebar->priv->editor);
 
-       gtk_container_add (GTK_CONTAINER(sidebar), sidebar->priv->editor);
+        gtk_box_pack_start (GTK_BOX (sidebar), sidebar->priv->editor, FALSE, FALSE, 0);
+        gtk_widget_set_vexpand (GTK_WIDGET (sidebar->priv->editor), FALSE);
 
        gl_debug (DEBUG_UI, "END");
 }