summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <infirit@gmail.com>2014-05-17 02:26:25 +0200
committerinfirit <infirit@gmail.com>2014-05-17 02:26:25 +0200
commit40aa3a2cf5cc982e60d80c15186bf5e476dd9499 (patch)
tree5af838ae5a8b234e190d34f3188eeac16f9c6acf
parent9ac60e7ab5bfbc95e64e0017fdeda54d4dcaac19 (diff)
downloadmate-panel-40aa3a2cf5cc982e60d80c15186bf5e476dd9499.tar.bz2
mate-panel-40aa3a2cf5cc982e60d80c15186bf5e476dd9499.tar.xz
Use gtk_combo_box_text_new for gtk+2
It was introduced in gtk+-2.24
-rw-r--r--applets/notification_area/testtray.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/applets/notification_area/testtray.c b/applets/notification_area/testtray.c
index 9feed828..f19663cd 100644
--- a/applets/notification_area/testtray.c
+++ b/applets/notification_area/testtray.c
@@ -162,15 +162,9 @@ create_tray_on_screen (GdkScreen *screen,
label = gtk_label_new_with_mnemonic ("_Orientation:");
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
-#if GTK_CHECK_VERSION (3, 0, 0)
combo = gtk_combo_box_text_new ();
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), "Horizontal");
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), "Vertical");
-#else
- combo = gtk_combo_box_new_text ();
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo), "Horizontal");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo), "Vertical");
-#endif
g_signal_connect (combo, "changed",
G_CALLBACK (orientation_changed_cb), data);
gtk_box_pack_start (GTK_BOX (hbox), combo, FALSE, FALSE, 0);