From 355fdba3e5c95beea4c9a8aa05dfec59a580611b Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Mon, 16 Nov 2015 13:13:54 +0100 Subject: Gtk3: don't use deprecated gtk_{h/v}box_new --- plugins/housekeeping/msd-ldsm-trash-empty.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/housekeeping/msd-ldsm-trash-empty.c') diff --git a/plugins/housekeeping/msd-ldsm-trash-empty.c b/plugins/housekeeping/msd-ldsm-trash-empty.c index 1909f30..e0fe554 100644 --- a/plugins/housekeeping/msd-ldsm-trash-empty.c +++ b/plugins/housekeeping/msd-ldsm-trash-empty.c @@ -26,6 +26,11 @@ #define CAJA_PREFS_SCHEMA "org.mate.caja.preferences" #define CAJA_CONFIRM_TRASH_KEY "confirm-trash" +#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 + /* Some of this code has been borrowed from the trash-applet, courtesy of Ryan Lortie */ static GtkWidget *trash_empty_confirm_dialog = NULL; -- cgit v1.2.1