summaryrefslogtreecommitdiff
path: root/src/file-manager/fm-properties-window.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-19 01:41:59 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-19 01:41:59 +0100
commite2e45eb5558f3e43ca1fe901c8c94efdf2caef06 (patch)
treebc81930d1cf889819f637a7eb4ddf4b01610c9ad /src/file-manager/fm-properties-window.c
parent0ca18e1d5110c571d53afd631f0bad4d0097641e (diff)
downloadcaja-e2e45eb5558f3e43ca1fe901c8c94efdf2caef06.tar.bz2
caja-e2e45eb5558f3e43ca1fe901c8c94efdf2caef06.tar.xz
GTK3: don'use deprecated gtk_hseparator_new
Diffstat (limited to 'src/file-manager/fm-properties-window.c')
-rw-r--r--src/file-manager/fm-properties-window.c10
1 files changed, 7 insertions, 3 deletions
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