diff options
author | infirit <[email protected]> | 2014-11-23 11:23:52 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-23 11:38:10 +0100 |
commit | dba401f22f4aa533d74bb5429e807fbc3c42ec00 (patch) | |
tree | 908bcd70dee3dcca1086f8138333a01a5c8dee1b /applets/clock/clock-location.c | |
parent | 53362cb07c5e9d68cc9ff52c9a9eaf0da3ef585e (diff) | |
download | mate-panel-dba401f22f4aa533d74bb5429e807fbc3c42ec00.tar.bz2 mate-panel-dba401f22f4aa533d74bb5429e807fbc3c42ec00.tar.xz |
Gtk3: Silence GtkBox deprecation warnings
Diffstat (limited to 'applets/clock/clock-location.c')
-rw-r--r-- | applets/clock/clock-location.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/applets/clock/clock-location.c b/applets/clock/clock-location.c index ca785889..bcebb538 100644 --- a/applets/clock/clock-location.c +++ b/applets/clock/clock-location.c @@ -15,6 +15,7 @@ #include <glib.h> #include <gio/gio.h> +#include <gtk/gtk.h> #ifdef HAVE_NETWORK_MANAGER #include <dbus/dbus-glib.h> @@ -27,6 +28,11 @@ #include "set-timezone.h" #include "system-timezone.h" +#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 + G_DEFINE_TYPE (ClockLocation, clock_location, G_TYPE_OBJECT) typedef struct { |