From e2e45eb5558f3e43ca1fe901c8c94efdf2caef06 Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Tue, 19 Jan 2016 01:41:59 +0100 Subject: GTK3: don'use deprecated gtk_hseparator_new --- libcaja-private/caja-column-chooser.c | 4 ++++ src/file-manager/fm-properties-window.c | 10 +++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/libcaja-private/caja-column-chooser.c b/libcaja-private/caja-column-chooser.c index 42bd904e..c5ae9779 100644 --- a/libcaja-private/caja-column-chooser.c +++ b/libcaja-private/caja-column-chooser.c @@ -402,7 +402,11 @@ 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); diff --git a/src/file-manager/fm-properties-window.c b/src/file-manager/fm-properties-window.c index f977555b..4e37330d 100644 --- a/src/file-manager/fm-properties-window.c +++ b/src/file-manager/fm-properties-window.c @@ -410,9 +410,13 @@ add_prompt_and_separator (GtkVBox *vbox, const char *prompt_text) add_prompt (vbox, prompt_text, FALSE); - separator_line = gtk_hseparator_new (); - gtk_widget_show (separator_line); - gtk_box_pack_end (GTK_BOX (vbox), separator_line, TRUE, TRUE, 2*ROW_PAD); +#if GTK_CHECK_VERSION (3, 0, 0) + separator_line = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); +#else + separator_line = gtk_hseparator_new (); +#endif + gtk_widget_show (separator_line); + gtk_box_pack_end (GTK_BOX (vbox), separator_line, TRUE, TRUE, 2*ROW_PAD); } static void -- cgit v1.2.1