[anjuta] glade: Fix the palette not being shown.



commit b701c6218dc279e5c1c478d64aff19c0cd465165
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date:   Mon Nov 19 20:13:36 2012 +0100

    glade: Fix the palette not being shown.
    
    Call gtk_widget_show_all() on the palette_box since anjuta_shell_add_widget() doesn't do it
    anymore. Also change back the palette_box to vertical which was mistakenly changed in
    9a2c4a1055c4c70294e1637f9d74da67d2034b88.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=688671

 plugins/glade/plugin.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/glade/plugin.c b/plugins/glade/plugin.c
index 061269e..e25d4f1 100644
--- a/plugins/glade/plugin.c
+++ b/plugins/glade/plugin.c
@@ -656,7 +656,7 @@ activate_plugin (AnjutaPlugin *plugin)
 	priv->editor = GTK_WIDGET(glade_editor_new());
 
 	priv->palette = glade_palette_new();
-	priv->palette_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
+	priv->palette_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
 	priv->selector_toggle = create_selector_tool_button ();
 	priv->resize_toggle = create_drag_resize_tool_button ();
 	button_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
@@ -673,6 +673,7 @@ activate_plugin (AnjutaPlugin *plugin)
 	                    priv->palette,
 	                    TRUE, TRUE, 0);
 
+	gtk_widget_show_all (priv->palette_box);
 
 	gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->selector_toggle),
 	                              TRUE);



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