summaryrefslogtreecommitdiff
path: root/applets/notification_area/testtray.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-10-26 14:39:39 +0200
committerStefano Karapetsas <[email protected]>2013-10-26 14:39:39 +0200
commit5c99612305a3042d7096123619a83346492eadf3 (patch)
tree989b93367552259e0cce46c04b742b47266f31cd /applets/notification_area/testtray.c
parent57c9c407461f47ec09f0a2a631601450a0209af6 (diff)
downloadmate-panel-5c99612305a3042d7096123619a83346492eadf3.tar.bz2
mate-panel-5c99612305a3042d7096123619a83346492eadf3.tar.xz
notification_area: Add GTK3 support
Diffstat (limited to 'applets/notification_area/testtray.c')
-rw-r--r--applets/notification_area/testtray.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/applets/notification_area/testtray.c b/applets/notification_area/testtray.c
index f6a9111e..9feed828 100644
--- a/applets/notification_area/testtray.c
+++ b/applets/notification_area/testtray.c
@@ -162,9 +162,15 @@ 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);