summaryrefslogtreecommitdiff
path: root/applets/clock/clock.c
diff options
context:
space:
mode:
authorSorokin Alexei <[email protected]>2016-06-24 23:33:04 +0300
committerraveit65 <[email protected]>2016-06-29 18:42:12 +0200
commit882f8f4d9959b6b27f08d2ddb525c7347df1797c (patch)
treebadcf506263d22bd15f0c4a77c41b431e4e65f09 /applets/clock/clock.c
parent8acec6d1ae0e50f0eee68ce6153d04a3beb5d52a (diff)
downloadmate-panel-882f8f4d9959b6b27f08d2ddb525c7347df1797c.tar.bz2
mate-panel-882f8f4d9959b6b27f08d2ddb525c7347df1797c.tar.xz
use gtk_box_new instead of gtk_{h,v}box_new properly
Diffstat (limited to 'applets/clock/clock.c')
-rw-r--r--applets/clock/clock.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/applets/clock/clock.c b/applets/clock/clock.c
index 370bf9ac..8a40ad63 100644
--- a/applets/clock/clock.c
+++ b/applets/clock/clock.c
@@ -85,10 +85,6 @@
#define KEY_TEMPERATURE_UNIT "temperature-unit"
#define KEY_SPEED_UNIT "speed-unit"
-#if GTK_CHECK_VERSION (3, 0, 0)
-#define gtk_vbox_new(X, Y) gtk_box_new(GTK_ORIENTATION_VERTICAL, Y)
-#endif
-
enum {
COL_CITY_NAME = 0,
COL_CITY_TZ,
@@ -1019,7 +1015,11 @@ create_clock_window (ClockData *cd)
locations_box = calendar_window_get_locations_box (CALENDAR_WINDOW (cd->calendar_popup));
gtk_widget_show (locations_box);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ cd->clock_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+#else
cd->clock_vbox = gtk_vbox_new (FALSE, 6);
+#endif
gtk_container_add (GTK_CONTAINER (locations_box), cd->clock_vbox);
cd->clock_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
@@ -1168,7 +1168,11 @@ create_cities_section (ClockData *cd)
g_list_free (cd->location_tiles);
cd->location_tiles = NULL;
+#if GTK_CHECK_VERSION (3, 0, 0)
+ cd->cities_section = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+#else
cd->cities_section = gtk_vbox_new (FALSE, 6);
+#endif
gtk_container_set_border_width (GTK_CONTAINER (cd->cities_section), 0);
cities = cd->locations;