aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Terry <michael.terry@canonical.com>2012-01-09 12:44:26 +0100
committerMichael Terry <michael.terry@canonical.com>2012-01-09 12:44:26 +0100
commitdd5f403c84b55b443d0c67dee6070b313dc50431 (patch)
tree536dd1a7749df3519abff82858937980d7a6afc6
parentb9836332dccd804469d8a83c535d5a0816598455 (diff)
downloadayatana-indicator-datetime-dd5f403c84b55b443d0c67dee6070b313dc50431.tar.gz
ayatana-indicator-datetime-dd5f403c84b55b443d0c67dee6070b313dc50431.tar.bz2
ayatana-indicator-datetime-dd5f403c84b55b443d0c67dee6070b313dc50431.zip
fix deprecation warnings
-rw-r--r--src/indicator-datetime.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c
index 8e5f421..10c6dde 100644
--- a/src/indicator-datetime.c
+++ b/src/indicator-datetime.c
@@ -1261,7 +1261,11 @@ new_appointment_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, Dbu
mi_data->gmi = gtk_menu_item_new();
+#if GTK_CHECK_VERSION(3,0,0)
+ GtkWidget * hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4);
+#else
GtkWidget * hbox = gtk_hbox_new(FALSE, 4);
+#endif
/* Icon, probably someone's face or avatar on an IM */
mi_data->icon = gtk_image_new();
@@ -1472,7 +1476,11 @@ new_timezone_item(DbusmenuMenuitem * newitem,
gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(mi_data->gmi),
dbusmenu_menuitem_property_get_bool(newitem, TIMEZONE_MENUITEM_PROP_RADIO));
+#if GTK_CHECK_VERSION(3,0,0)
+ GtkWidget * hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4);
+#else
GtkWidget * hbox = gtk_hbox_new(FALSE, 4);
+#endif
/* Label, probably a username, chat room or mailbox name */
mi_data->label = gtk_label_new("");