diff options
author | Wolfgang Ulbrich <[email protected]> | 2015-11-19 21:13:51 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2015-12-01 22:31:33 +0100 |
commit | dc6b2065db9aa22aac346adaf337fb868b959f11 (patch) | |
tree | 13ac577af60397bbff08819cc5ad2041f4da9397 /pluma/pluma-documents-panel.c | |
parent | 9994dd399ab569d547e18cb5f01900f8db953312 (diff) | |
download | pluma-dc6b2065db9aa22aac346adaf337fb868b959f11.tar.bz2 pluma-dc6b2065db9aa22aac346adaf337fb868b959f11.tar.xz |
GTk3: don't use deprecated GTK_TYPE_{V/H}BOX
Diffstat (limited to 'pluma/pluma-documents-panel.c')
-rw-r--r-- | pluma/pluma-documents-panel.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pluma/pluma-documents-panel.c b/pluma/pluma-documents-panel.c index 66d3405f..1ba7a5c0 100644 --- a/pluma/pluma-documents-panel.c +++ b/pluma/pluma-documents-panel.c @@ -53,7 +53,11 @@ struct _PlumaDocumentsPanelPrivate guint is_reodering : 1; }; +#if GTK_CHECK_VERSION (3, 0, 0) +G_DEFINE_TYPE(PlumaDocumentsPanel, pluma_documents_panel, GTK_TYPE_BOX) +#else G_DEFINE_TYPE(PlumaDocumentsPanel, pluma_documents_panel, GTK_TYPE_VBOX) +#endif enum { @@ -749,6 +753,11 @@ pluma_documents_panel_init (PlumaDocumentsPanel *panel) panel->priv->adding_tab = FALSE; panel->priv->is_reodering = FALSE; + +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_orientable_set_orientation (GTK_ORIENTABLE (panel), + GTK_ORIENTATION_VERTICAL); +#endif /* Create the scrolled window */ sw = gtk_scrolled_window_new (NULL, NULL); |