diff options
Diffstat (limited to 'libcaja-private/caja-column-chooser.c')
-rw-r--r-- | libcaja-private/caja-column-chooser.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/libcaja-private/caja-column-chooser.c b/libcaja-private/caja-column-chooser.c index c5ae9779..7c4a096f 100644 --- a/libcaja-private/caja-column-chooser.c +++ b/libcaja-private/caja-column-chooser.c @@ -31,10 +31,6 @@ #include "caja-column-utilities.h" -#if GTK_CHECK_VERSION (3, 0, 0) -#define gtk_vbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_VERTICAL,Y) -#endif - struct _CajaColumnChooserDetails { GtkTreeView *view; @@ -69,11 +65,7 @@ enum }; static guint signals[LAST_SIGNAL] = { 0 }; -#if GTK_CHECK_VERSION (3, 0, 0) G_DEFINE_TYPE(CajaColumnChooser, caja_column_chooser, GTK_TYPE_BOX); -#else -G_DEFINE_TYPE(CajaColumnChooser, caja_column_chooser, GTK_TYPE_HBOX); -#endif static void caja_column_chooser_constructed (GObject *object); @@ -379,7 +371,7 @@ add_buttons (CajaColumnChooser *chooser) GtkWidget *box; GtkWidget *separator; - box = gtk_vbox_new (FALSE, 8); + box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); gtk_widget_show (box); chooser->details->move_up_button = button_new_with_mnemonic (GTK_STOCK_GO_UP, @@ -402,11 +394,7 @@ add_buttons (CajaColumnChooser *chooser) gtk_box_pack_start (GTK_BOX (box), chooser->details->move_down_button, FALSE, FALSE, 0); -#if GTK_CHECK_VERSION (3, 0, 0) separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); -#else - separator = gtk_hseparator_new (); -#endif gtk_widget_show (separator); gtk_box_pack_start (GTK_BOX (box), separator, FALSE, FALSE, 0); @@ -478,9 +466,7 @@ caja_column_chooser_init (CajaColumnChooser *chooser) g_object_set (G_OBJECT (chooser), "homogeneous", FALSE, "spacing", 8, -#if GTK_CHECK_VERSION (3, 0, 0) "orientation", GTK_ORIENTATION_HORIZONTAL, -#endif NULL); add_tree_view (chooser); |