[notification-daemon] don't use deprecated gtk_[v/h]_box_new



commit 00178f8398463304e1d2c1ce466f09e7a78916d9
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Nov 24 21:32:41 2014 +0200

    don't use deprecated gtk_[v/h]_box_new

 src/nd-bubble.c           |   14 +++++++-------
 src/nd-notification-box.c |   12 ++++++------
 src/nd-queue.c            |    4 ++--
 3 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/src/nd-bubble.c b/src/nd-bubble.c
index 6c69fb1..35e4bc0 100644
--- a/src/nd-bubble.c
+++ b/src/nd-bubble.c
@@ -555,7 +555,7 @@ nd_bubble_init (NdBubble *bubble)
                 bubble->priv->composited = TRUE;
         }
 
-        main_vbox = gtk_vbox_new (FALSE, 0);
+        main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
         g_signal_connect (G_OBJECT (main_vbox),
                           "style-set",
                           G_CALLBACK (on_style_set),
@@ -564,7 +564,7 @@ nd_bubble_init (NdBubble *bubble)
         gtk_container_add (GTK_CONTAINER (bubble), main_vbox);
         gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 12);
 
-        bubble->priv->main_hbox = gtk_hbox_new (FALSE, 0);
+        bubble->priv->main_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
         gtk_widget_show (bubble->priv->main_hbox);
         gtk_box_pack_start (GTK_BOX (main_vbox),
                             bubble->priv->main_hbox,
@@ -584,7 +584,7 @@ nd_bubble_init (NdBubble *bubble)
         gtk_widget_show (bubble->priv->icon);
         gtk_container_add (GTK_CONTAINER (bubble->priv->iconbox), bubble->priv->icon);
 
-        vbox = gtk_vbox_new (FALSE, 6);
+        vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
         gtk_widget_show (vbox);
         gtk_box_pack_start (GTK_BOX (bubble->priv->main_hbox), vbox, TRUE, TRUE, 0);
         gtk_container_set_border_width (GTK_CONTAINER (vbox), 10);
@@ -640,12 +640,12 @@ nd_bubble_init (NdBubble *bubble)
         atkobj = gtk_widget_get_accessible (bubble->priv->summary_label);
         atk_object_set_description (atkobj, "Notification summary text.");
 
-        bubble->priv->content_hbox = gtk_hbox_new (FALSE, 6);
+        bubble->priv->content_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
         gtk_widget_show (bubble->priv->content_hbox);
         gtk_box_pack_start (GTK_BOX (vbox), bubble->priv->content_hbox, FALSE, FALSE, 0);
 
 
-        vbox = gtk_vbox_new (FALSE, 6);
+        vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
         gtk_widget_show (vbox);
         gtk_box_pack_start (GTK_BOX (bubble->priv->content_hbox), vbox, TRUE, TRUE, 0);
 
@@ -672,7 +672,7 @@ nd_bubble_init (NdBubble *bubble)
         gtk_widget_show (alignment);
         gtk_box_pack_start (GTK_BOX (vbox), alignment, FALSE, TRUE, 0);
 
-        bubble->priv->actions_box = gtk_hbox_new (FALSE, 6);
+        bubble->priv->actions_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
         gtk_widget_show (bubble->priv->actions_box);
         gtk_container_add (GTK_CONTAINER (alignment), bubble->priv->actions_box);
 }
@@ -879,7 +879,7 @@ add_notification_action (NdBubble       *bubble,
         gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
         gtk_container_set_border_width (GTK_CONTAINER (button), 0);
 
-        hbox = gtk_hbox_new (FALSE, 6);
+        hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
         gtk_widget_show (hbox);
         gtk_container_add (GTK_CONTAINER (button), hbox);
 
diff --git a/src/nd-notification-box.c b/src/nd-notification-box.c
index b360946..5fa387b 100644
--- a/src/nd-notification-box.c
+++ b/src/nd-notification-box.c
@@ -120,7 +120,7 @@ create_notification_action (NdNotificationBox *box,
         gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
         gtk_container_set_border_width (GTK_CONTAINER (button), 0);
 
-        hbox = gtk_hbox_new (FALSE, 6);
+        hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
         gtk_widget_show (hbox);
         gtk_container_add (GTK_CONTAINER (button), hbox);
 
@@ -278,7 +278,7 @@ nd_notification_box_init (NdNotificationBox *notification_box)
         GtkRcStyle    *rcstyle;
 
         notification_box->priv = ND_NOTIFICATION_BOX_GET_PRIVATE (notification_box);
-        box = gtk_hbox_new (FALSE, 6);
+        box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
         gtk_container_add (GTK_CONTAINER (notification_box), box);
         gtk_widget_show (box);
 
@@ -296,7 +296,7 @@ nd_notification_box_init (NdNotificationBox *notification_box)
         gtk_widget_show (notification_box->priv->icon);
         gtk_container_add (GTK_CONTAINER (iconbox), notification_box->priv->icon);
 
-        vbox = gtk_vbox_new (FALSE, 6);
+        vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
         gtk_widget_show (vbox);
         gtk_box_pack_start (GTK_BOX (box), vbox, TRUE, TRUE, 0);
         gtk_container_set_border_width (GTK_CONTAINER (vbox), 10);
@@ -343,11 +343,11 @@ nd_notification_box_init (NdNotificationBox *notification_box)
         atkobj = gtk_widget_get_accessible (notification_box->priv->summary_label);
         atk_object_set_description (atkobj, "Notification summary text.");
 
-        notification_box->priv->content_hbox = gtk_hbox_new (FALSE, 6);
+        notification_box->priv->content_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
         gtk_widget_show (notification_box->priv->content_hbox);
         gtk_box_pack_start (GTK_BOX (vbox), notification_box->priv->content_hbox, FALSE, FALSE, 0);
 
-        vbox = gtk_vbox_new (FALSE, 6);
+        vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
 
         gtk_widget_show (vbox);
         gtk_box_pack_start (GTK_BOX (notification_box->priv->content_hbox), vbox, TRUE, TRUE, 0);
@@ -367,7 +367,7 @@ nd_notification_box_init (NdNotificationBox *notification_box)
         gtk_widget_show (alignment);
         gtk_box_pack_start (GTK_BOX (vbox), alignment, FALSE, TRUE, 0);
 
-        notification_box->priv->actions_box = gtk_hbox_new (FALSE, 6);
+        notification_box->priv->actions_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
         gtk_widget_show (notification_box->priv->actions_box);
         gtk_container_add (GTK_CONTAINER (alignment), notification_box->priv->actions_box);
 
diff --git a/src/nd-queue.c b/src/nd-queue.c
index b744b88..e9ea119 100644
--- a/src/nd-queue.c
+++ b/src/nd-queue.c
@@ -456,7 +456,7 @@ create_dock (NdQueue *queue)
         gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_OUT);
         gtk_container_add (GTK_CONTAINER (queue->priv->dock), frame);
 
-        box = gtk_vbox_new (FALSE, 6);
+        box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
         gtk_container_set_border_width (GTK_CONTAINER (box), 2);
         gtk_container_add (GTK_CONTAINER (frame), box);
 
@@ -685,7 +685,7 @@ update_dock (NdQueue *queue)
         if (child != NULL)
                 gtk_container_remove (GTK_CONTAINER (queue->priv->dock_scrolled_window), child);
 
-        child = gtk_vbox_new (FALSE, 6);
+        child = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
         gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (queue->priv->dock_scrolled_window),
                                                child);
         gtk_container_set_focus_hadjustment (GTK_CONTAINER (child),


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