[network-manager-applet] GtkHSeparator is not cool anymore, either



commit e3da0abf97b49613628d29267bbce33f2e32a722
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jun 28 20:06:07 2011 -0400

    GtkHSeparator is not cool anymore, either
    
    Replace it with GtkSeparator.

 src/applet.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/applet.c b/src/applet.c
index ec28d89..5ed4936 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -613,11 +613,19 @@ applet_menu_item_add_complex_separator_helper (GtkWidget *menu,
 		xlabel = gtk_label_new (NULL);
 		gtk_label_set_markup (GTK_LABEL (xlabel), label);
 
+#if GTK_CHECK_VERSION(3,1,6)
+		gtk_box_pack_start (GTK_BOX (box), gtk_separator_new (), TRUE, TRUE, 0);
+#else
 		gtk_box_pack_start (GTK_BOX (box), gtk_hseparator_new (), TRUE, TRUE, 0);
+#endif
 		gtk_box_pack_start (GTK_BOX (box), xlabel, FALSE, FALSE, 2);
 	}
 
+#if GTK_CHECK_VERSION(3,1,6)
+	gtk_box_pack_start (GTK_BOX (box), gtk_separator_new (), TRUE, TRUE, 0);
+#else
 	gtk_box_pack_start (GTK_BOX (box), gtk_hseparator_new (), TRUE, TRUE, 0);
+#endif
 
 	g_object_set (G_OBJECT (menu_item),
 	              "child", box,



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