diff options
author | Wolfgang Ulbrich <[email protected]> | 2016-01-18 15:41:50 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-01-18 15:41:50 +0100 |
commit | cf39567d3b05b69383c252812c5adf26382c866a (patch) | |
tree | 2ce1db2b6888f3dc8cdba6818233afcae493e7de /src/caja-emblem-sidebar.c | |
parent | 0edcf869c2f6b28a5bd0ee6e612229db8c9f2d67 (diff) | |
download | caja-cf39567d3b05b69383c252812c5adf26382c866a.tar.bz2 caja-cf39567d3b05b69383c252812c5adf26382c866a.tar.xz |
GTK3: fix deprecated GTK_TYPE_{H/V}BOX usage
Diffstat (limited to 'src/caja-emblem-sidebar.c')
-rw-r--r-- | src/caja-emblem-sidebar.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/caja-emblem-sidebar.c b/src/caja-emblem-sidebar.c index c3740524..75e9f61f 100644 --- a/src/caja-emblem-sidebar.c +++ b/src/caja-emblem-sidebar.c @@ -111,8 +111,11 @@ typedef struct GObjectClass parent; } CajaEmblemSidebarProviderClass; - +#if GTK_CHECK_VERSION (3, 0, 0) +G_DEFINE_TYPE_WITH_CODE (CajaEmblemSidebar, caja_emblem_sidebar, GTK_TYPE_BOX, +#else G_DEFINE_TYPE_WITH_CODE (CajaEmblemSidebar, caja_emblem_sidebar, GTK_TYPE_VBOX, +#endif G_IMPLEMENT_INTERFACE (CAJA_TYPE_SIDEBAR, caja_emblem_sidebar_iface_init)); @@ -1044,6 +1047,9 @@ caja_emblem_sidebar_init (CajaEmblemSidebar *emblem_sidebar) "emblems_changed", G_CALLBACK (emblems_changed_callback), emblem_sidebar, 0); +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_orientable_set_orientation (GTK_ORIENTABLE (emblem_sidebar), GTK_ORIENTATION_VERTICAL); +#endif gtk_box_pack_start (GTK_BOX (emblem_sidebar), widget, TRUE, TRUE, 0); } |