[libegg] egg-editable-toolbar: don't force visibility on actions



commit 92db05f7e1c211d0f4a207c2ebdadd2666a28bf4
Author: Diego Escalante Urrelo <descalante igalia com>
Date:   Mon Aug 30 14:02:25 2010 -0500

    egg-editable-toolbar: don't force visibility on actions
    
    GtkActions set the visibility of their proxies by themselves, we don't have to
    force the visibility with gtk_widget_show.
    
    Bug #628362

 libegg/toolbareditor/egg-editable-toolbar.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/libegg/toolbareditor/egg-editable-toolbar.c b/libegg/toolbareditor/egg-editable-toolbar.c
index d302ccb..0320c25 100644
--- a/libegg/toolbareditor/egg-editable-toolbar.c
+++ b/libegg/toolbareditor/egg-editable-toolbar.c
@@ -587,6 +587,7 @@ create_item_from_action (EggEditableToolbar *etoolbar,
   if (strcmp (name, "_separator") == 0)
     {
       item = gtk_separator_tool_item_new ();
+      gtk_widget_show (GTK_WIDGET (item));
     }
   else
     {
@@ -605,8 +606,6 @@ create_item_from_action (EggEditableToolbar *etoolbar,
                                G_CALLBACK (action_sensitive_cb), item, 0);
     }
 
-  gtk_widget_show (GTK_WIDGET (item));
-
   g_object_set_data_full (G_OBJECT (item), EGG_ITEM_NAME,
                           g_strdup (name), g_free);
 



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