[glade/multiple-toplevels] * gladeui/glade-design-view.c: added a label at the end of the layout box to allow the last layout
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/multiple-toplevels] * gladeui/glade-design-view.c: added a label at the end of the layout box to allow the last layout
- Date: Sun, 30 Jan 2011 00:42:50 +0000 (UTC)
commit 887b3827f535f91c6d11d00f34ea875781f6515f
Author: Juan Pablo Ugarte <jp synctv com>
Date: Thu Jan 27 09:42:37 2011 -0300
* gladeui/glade-design-view.c: added a label at the end of the layout box to allow the last layout to resize
gladeui/glade-design-view.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gladeui/glade-design-view.c b/gladeui/glade-design-view.c
index 0891160..fe081bb 100644
--- a/gladeui/glade-design-view.c
+++ b/gladeui/glade-design-view.c
@@ -168,10 +168,10 @@ on_project_add_widget (GladeProject *project, GladeWidget *widget, GladeDesignVi
layout = glade_design_layout_new ();
gtk_box_pack_start (GTK_BOX (view->priv->layout_box), layout, FALSE, TRUE, 0);
- gtk_widget_show (layout);
gtk_container_add (GTK_CONTAINER (layout), GTK_WIDGET (object));
- gtk_widget_show_all (view->priv->layout_box);
+ gtk_widget_show (GTK_WIDGET (object));
+ gtk_widget_show (layout);
}
static void
@@ -272,6 +272,7 @@ glade_design_view_init (GladeDesignView * view)
view->priv->project = NULL;
view->priv->layout_box = gtk_vbox_new (FALSE, 8);
gtk_container_set_border_width (GTK_CONTAINER (view->priv->layout_box), 8);
+ gtk_box_pack_end (GTK_BOX (view->priv->layout_box), gtk_label_new (""), FALSE, FALSE, 0);
view->priv->scrolled_window = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW
@@ -290,7 +291,7 @@ glade_design_view_init (GladeDesignView * view)
gtk_widget_show (view->priv->scrolled_window);
gtk_widget_show (viewport);
- gtk_widget_show (view->priv->layout_box);
+ gtk_widget_show_all (view->priv->layout_box);
gtk_box_pack_start (GTK_BOX (view), view->priv->scrolled_window, TRUE, TRUE,
0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]