diff options
author | monsta <[email protected]> | 2016-11-06 14:43:26 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-11-06 14:43:26 +0300 |
commit | 4c06cb5cd0859067769dac1317682d430b18cc78 (patch) | |
tree | 0c363ee71311366fb2016df9858858ef5ef2d25d /pluma/pluma-documents-panel.c | |
parent | 65371f53dbb06180b750dad7c19e7bcf0f8651d6 (diff) | |
download | pluma-4c06cb5cd0859067769dac1317682d430b18cc78.tar.bz2 pluma-4c06cb5cd0859067769dac1317682d430b18cc78.tar.xz |
move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build option
Diffstat (limited to 'pluma/pluma-documents-panel.c')
-rw-r--r-- | pluma/pluma-documents-panel.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/pluma/pluma-documents-panel.c b/pluma/pluma-documents-panel.c index 97308efe..68a6a5d6 100644 --- a/pluma/pluma-documents-panel.c +++ b/pluma/pluma-documents-panel.c @@ -53,11 +53,7 @@ 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 { @@ -540,11 +536,7 @@ menu_position (GtkMenu *menu, gdk_window_get_origin (gtk_widget_get_window (w), x, y); -#if GTK_CHECK_VERSION (3, 0, 0) gtk_widget_get_preferred_size (GTK_WIDGET (menu), NULL, &requisition); -#else - gtk_widget_size_request (GTK_WIDGET (menu), &requisition); -#endif if (gtk_widget_get_direction (w) == GTK_TEXT_DIR_RTL) { @@ -758,10 +750,8 @@ 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); |