summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-11-16 13:13:54 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-02 12:43:13 +0100
commit355fdba3e5c95beea4c9a8aa05dfec59a580611b (patch)
treef7e9c44f5abd84027d7bc82f93d42b1a1cbd1d6c
parentd998ec6e17201c854d8ae80593b2e6e0d31ccd5e (diff)
downloadmate-settings-daemon-355fdba3e5c95beea4c9a8aa05dfec59a580611b.tar.bz2
mate-settings-daemon-355fdba3e5c95beea4c9a8aa05dfec59a580611b.tar.xz
Gtk3: don't use deprecated gtk_{h/v}box_new
-rw-r--r--plugins/housekeeping/msd-ldsm-dialog.c5
-rw-r--r--plugins/housekeeping/msd-ldsm-trash-empty.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/plugins/housekeeping/msd-ldsm-dialog.c b/plugins/housekeeping/msd-ldsm-dialog.c
index 0b13cf7..597e687 100644
--- a/plugins/housekeeping/msd-ldsm-dialog.c
+++ b/plugins/housekeeping/msd-ldsm-dialog.c
@@ -25,6 +25,11 @@
#define SETTINGS_SCHEMA "org.mate.SettingsDaemon.plugins.housekeeping"
#define SETTINGS_IGNORE_PATHS "ignore-paths"
+#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
+
enum
{
PROP_0,
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;