summaryrefslogtreecommitdiff
path: root/cut-n-paste
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-22 11:49:11 +0200
committerraveit65 <[email protected]>2016-06-22 11:49:11 +0200
commita0292d6425b8413fe465285c78a670e6f09d72ec (patch)
tree2a0517763e685ef74070803aad36a6916c31a9de /cut-n-paste
parentfd09fb9251212e7161796a2007f2b1f8c97e57a9 (diff)
downloadatril-a0292d6425b8413fe465285c78a670e6f09d72ec.tar.bz2
atril-a0292d6425b8413fe465285c78a670e6f09d72ec.tar.xz
GTK+-3: do not use deprecated gtk_{h/v}box_new
Diffstat (limited to 'cut-n-paste')
-rw-r--r--cut-n-paste/toolbar-editor/egg-editable-toolbar.c1
-rw-r--r--cut-n-paste/toolbar-editor/egg-toolbar-editor.c1
-rw-r--r--cut-n-paste/zoom-control/ephy-zoom-control.c4
3 files changed, 6 insertions, 0 deletions
diff --git a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c
index 480abc14..2e40162c 100644
--- a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c
+++ b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c
@@ -38,6 +38,7 @@ static GdkPixbuf * new_separator_pixbuf (void);
#if GTK_CHECK_VERSION (3, 0, 0)
#define gdk_cursor_unref g_object_unref
#define gtk_widget_render_icon(A,B,C,D) gtk_widget_render_icon_pixbuf(A,B,C)
+#define gtk_hbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_HORIZONTAL,Y)
#endif
static const GtkTargetEntry dest_drag_types[] = {
diff --git a/cut-n-paste/toolbar-editor/egg-toolbar-editor.c b/cut-n-paste/toolbar-editor/egg-toolbar-editor.c
index 9f699480..4cfacf79 100644
--- a/cut-n-paste/toolbar-editor/egg-toolbar-editor.c
+++ b/cut-n-paste/toolbar-editor/egg-toolbar-editor.c
@@ -31,6 +31,7 @@
#if GTK_CHECK_VERSION (3, 0, 0)
#define gdk_cursor_unref g_object_unref
#define gtk_widget_render_icon(A,B,C,D) gtk_widget_render_icon_pixbuf(A,B,C)
+#define gtk_vbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_VERTICAL,Y)
#endif
static const GtkTargetEntry dest_drag_types[] = {
diff --git a/cut-n-paste/zoom-control/ephy-zoom-control.c b/cut-n-paste/zoom-control/ephy-zoom-control.c
index d654395f..ed56bd1f 100644
--- a/cut-n-paste/zoom-control/ephy-zoom-control.c
+++ b/cut-n-paste/zoom-control/ephy-zoom-control.c
@@ -28,6 +28,10 @@
#include <gtk/gtk.h>
#include <glib/gi18n.h>
+#if GTK_CHECK_VERSION (3, 0, 0)
+#define gtk_vbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_VERTICAL,Y)
+#endif
+
#define EPHY_ZOOM_CONTROL_GET_PRIVATE(object)\
(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_ZOOM_CONTROL, EphyZoomControlPrivate))