summaryrefslogtreecommitdiff
path: root/pluma/pluma-documents-panel.c
diff options
context:
space:
mode:
Diffstat (limited to 'pluma/pluma-documents-panel.c')
-rw-r--r--pluma/pluma-documents-panel.c10
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);