From dba401f22f4aa533d74bb5429e807fbc3c42ec00 Mon Sep 17 00:00:00 2001 From: infirit Date: Sun, 23 Nov 2014 11:23:52 +0100 Subject: Gtk3: Silence GtkBox deprecation warnings --- applets/notification_area/na-tray.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'applets/notification_area') diff --git a/applets/notification_area/na-tray.c b/applets/notification_area/na-tray.c index 7df0741c..356e4d53 100644 --- a/applets/notification_area/na-tray.c +++ b/applets/notification_area/na-tray.c @@ -34,6 +34,11 @@ #define ICON_SPACING 1 #define MIN_BOX_SIZE 3 +#if GTK_CHECK_VERSION (3, 0, 0) +#define gtk_vbox_new(X, Y) gtk_box_new(GTK_ORIENTATION_VERTICAL, Y) +#define gtk_hbox_new(X, Y) gtk_box_new(GTK_ORIENTATION_HORIZONTAL, Y) +#endif + typedef struct { NaTrayManager *tray_manager; -- cgit v1.2.1