summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-02-08 16:47:36 +0100
committerWolfgang Ulbrich <[email protected]>2016-02-09 15:34:35 +0100
commit3fc26e94bacf14b60b8092756414b5093ff4c18c (patch)
treebc59883e62df121c7db939f2676ae5e9c0ae8fb9 /applets
parentf8c239b61ef61d8cb2a125d1cf8742919b84c723 (diff)
downloadmate-panel-3fc26e94bacf14b60b8092756414b5093ff4c18c.tar.bz2
mate-panel-3fc26e94bacf14b60b8092756414b5093ff4c18c.tar.xz
Gtk+3: Replace deprecated gtk_{v,h}box_new
Diffstat (limited to 'applets')
-rw-r--r--applets/clock/clock-location-tile.c5
-rw-r--r--applets/notification_area/testtray.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/applets/clock/clock-location-tile.c b/applets/clock/clock-location-tile.c
index 173a3854..73c9ca87 100644
--- a/applets/clock/clock-location-tile.c
+++ b/applets/clock/clock-location-tile.c
@@ -17,6 +17,11 @@
#include "clock-marshallers.h"
#include "set-timezone.h"
+#if GTK_CHECK_VERSION (3, 0, 0)
+#define gtk_hbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_HORIZONTAL,Y)
+#define gtk_vbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_VERTICAL,Y)
+#endif
+
G_DEFINE_TYPE (ClockLocationTile, clock_location_tile, GTK_TYPE_ALIGNMENT)
enum {
diff --git a/applets/notification_area/testtray.c b/applets/notification_area/testtray.c
index 4a2d0108..74cde0e7 100644
--- a/applets/notification_area/testtray.c
+++ b/applets/notification_area/testtray.c
@@ -29,6 +29,11 @@
#define NOTIFICATION_AREA_ICON "mate-panel-notification-area"
+#if GTK_CHECK_VERSION (3, 0, 0)
+#define gtk_hbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_HORIZONTAL,Y)
+#define gtk_vbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_VERTICAL,Y)
+#endif
+
static guint n_windows = 0;
typedef struct