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-sidebar-title.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-sidebar-title.c')
-rw-r--r-- | src/caja-sidebar-title.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/caja-sidebar-title.c b/src/caja-sidebar-title.c index ec8ef777..e5905051 100644 --- a/src/caja-sidebar-title.c +++ b/src/caja-sidebar-title.c @@ -111,7 +111,11 @@ struct CajaSidebarTitleDetails gboolean determined_icon; }; +#if GTK_CHECK_VERSION (3, 0, 0) +G_DEFINE_TYPE (CajaSidebarTitle, caja_sidebar_title, GTK_TYPE_BOX) +#else G_DEFINE_TYPE (CajaSidebarTitle, caja_sidebar_title, GTK_TYPE_VBOX) +#endif static void @@ -150,6 +154,10 @@ caja_sidebar_title_init (CajaSidebarTitle *sidebar_title) CAJA_TYPE_SIDEBAR_TITLE, CajaSidebarTitleDetails); +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_orientable_set_orientation (GTK_ORIENTABLE (sidebar_title), GTK_ORIENTATION_VERTICAL); +#endif + /* Create the icon */ sidebar_title->details->icon = gtk_image_new (); gtk_box_pack_start (GTK_BOX (sidebar_title), sidebar_title->details->icon, 0, 0, 0); |