[gnome-panel/gtk3] na: Move creating of GtkBox for NaTray



commit 777b913142e61378e60c217c7c609e181202704c
Author: Vincent Untz <vuntz gnome org>
Date:   Mon Jan 31 17:30:46 2011 +0100

    na: Move creating of GtkBox for NaTray
    
    Do it in init() instead of constructor(), for consistency. It shouldn't
    matter much, really.

 applets/notification_area/na-tray.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/applets/notification_area/na-tray.c b/applets/notification_area/na-tray.c
index 416f524..ec858a6 100644
--- a/applets/notification_area/na-tray.c
+++ b/applets/notification_area/na-tray.c
@@ -552,6 +552,12 @@ na_tray_init (NaTray *tray)
   priv->frame = gtk_alignment_new (0.5, 0.5, 1.0, 1.0);
   gtk_container_add (GTK_CONTAINER (tray), priv->frame);
   gtk_widget_show (priv->frame);
+
+  priv->box = gtk_box_new (priv->orientation, ICON_SPACING);
+  g_signal_connect (priv->box, "draw",
+                    G_CALLBACK (na_tray_draw_box), NULL);
+  gtk_container_add (GTK_CONTAINER (priv->frame), priv->box);
+  gtk_widget_show (priv->box);
 }
 
 static GObject *
@@ -572,12 +578,6 @@ na_tray_constructor (GType type,
 
   g_assert (priv->screen != NULL);
 
-  priv->box = gtk_box_new (priv->orientation, ICON_SPACING);
-  g_signal_connect (priv->box, "draw",
-                    G_CALLBACK (na_tray_draw_box), NULL);
-  gtk_container_add (GTK_CONTAINER (priv->frame), priv->box);
-  gtk_widget_show (priv->box);
-
   if (!initialized)
     {
       GdkDisplay *display;



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