[Xfce4-commits] [apps/xfce4-screensaver] 218/425: GTK3: don't use deprecated gtk_{v/h}box_new
noreply at xfce.org
noreply at xfce.org
Mon Oct 15 01:51:05 CEST 2018
This is an automated email from the git hooks/post-receive script.
b l u e s a b r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-screensaver.
commit ecc616fc774a3bf576283cd291fc6cc5d7400a77
Author: Wolfgang Ulbrich <chat-to-me at raveit.de>
Date: Thu Dec 10 20:27:00 2015 +0100
GTK3: don't use deprecated gtk_{v/h}box_new
---
src/copy-theme-dialog.c | 5 +++++
src/gs-lock-plug.c | 5 +++++
src/gs-window-x11.c | 5 +++++
3 files changed, 15 insertions(+)
diff --git a/src/copy-theme-dialog.c b/src/copy-theme-dialog.c
index 3656903..17821e0 100644
--- a/src/copy-theme-dialog.c
+++ b/src/copy-theme-dialog.c
@@ -31,6 +31,11 @@
#include "copy-theme-dialog.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
+
static void
copy_theme_dialog_class_init (CopyThemeDialogClass *klass);
static void
diff --git a/src/gs-lock-plug.c b/src/gs-lock-plug.c
index 37ab29b..e31163c 100644
--- a/src/gs-lock-plug.c
+++ b/src/gs-lock-plug.c
@@ -82,6 +82,11 @@ static void gs_lock_plug_finalize (GObject *object);
#define GS_LOCK_PLUG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GS_TYPE_LOCK_PLUG, GSLockPlugPrivate))
+#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
+
struct GSLockPlugPrivate
{
GtkWidget *vbox;
diff --git a/src/gs-window-x11.c b/src/gs-window-x11.c
index b1b8ba6..caf673f 100644
--- a/src/gs-window-x11.c
+++ b/src/gs-window-x11.c
@@ -62,6 +62,11 @@ enum
#define GS_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GS_TYPE_WINDOW, GSWindowPrivate))
+#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
+
struct GSWindowPrivate
{
int monitor;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list