summaryrefslogtreecommitdiff
path: root/src/caja-zoom-control.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-18 15:41:50 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-18 15:41:50 +0100
commitcf39567d3b05b69383c252812c5adf26382c866a (patch)
tree2ce1db2b6888f3dc8cdba6818233afcae493e7de /src/caja-zoom-control.c
parent0edcf869c2f6b28a5bd0ee6e612229db8c9f2d67 (diff)
downloadcaja-cf39567d3b05b69383c252812c5adf26382c866a.tar.bz2
caja-cf39567d3b05b69383c252812c5adf26382c866a.tar.xz
GTK3: fix deprecated GTK_TYPE_{H/V}BOX usage
Diffstat (limited to 'src/caja-zoom-control.c')
-rw-r--r--src/caja-zoom-control.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/caja-zoom-control.c b/src/caja-zoom-control.c
index 2fe7b5a5..fb8ba0da 100644
--- a/src/caja-zoom-control.c
+++ b/src/caja-zoom-control.c
@@ -110,7 +110,11 @@ static GType caja_zoom_control_accessible_get_type (void);
#define NUM_ACTIONS ((int)G_N_ELEMENTS (caja_zoom_control_accessible_action_names))
+#if GTK_CHECK_VERSION (3, 0, 0)
+G_DEFINE_TYPE (CajaZoomControl, caja_zoom_control, GTK_TYPE_BOX);
+#else
G_DEFINE_TYPE (CajaZoomControl, caja_zoom_control, GTK_TYPE_HBOX);
+#endif
static void
caja_zoom_control_finalize (GObject *object)
@@ -322,6 +326,9 @@ caja_zoom_control_init (CajaZoomControl *zoom_control)
g_signal_connect (G_OBJECT (zoom_control->details->zoom_out),
"clicked", G_CALLBACK (zoom_out_clicked),
zoom_control);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (zoom_control), GTK_ORIENTATION_HORIZONTAL);
+#endif
gtk_container_add (GTK_CONTAINER (zoom_control->details->zoom_out), image);
gtk_box_pack_start (GTK_BOX (zoom_control),
zoom_control->details->zoom_out, FALSE, FALSE, 0);
@@ -978,7 +985,11 @@ caja_zoom_control_accessible_get_type (void)
type = eel_accessibility_create_derived_type
("CajaZoomControlAccessible",
+#if GTK_CHECK_VERSION (3, 0, 0)
+ GTK_TYPE_BOX,
+#else
GTK_TYPE_HBOX,
+#endif
caja_zoom_control_accessible_class_init);
g_type_add_interface_static (type, ATK_TYPE_ACTION,