summaryrefslogtreecommitdiff
path: root/cut-n-paste/toolbar-editor/egg-toolbar-editor.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-22 20:57:19 +0200
committerraveit65 <[email protected]>2016-06-24 20:48:20 +0200
commit38d2394892d7c1403b9c6a8932c8dea4a502f960 (patch)
treee794ca48843aa449116bb0c33fabb925afc9e07c /cut-n-paste/toolbar-editor/egg-toolbar-editor.c
parent1dbdaee023e47edba8dcc14ca6fced372b89c25b (diff)
downloadatril-38d2394892d7c1403b9c6a8932c8dea4a502f960.tar.bz2
atril-38d2394892d7c1403b9c6a8932c8dea4a502f960.tar.xz
GTK+-3: fix deprecated gtk_{v/h}separator_new
Diffstat (limited to 'cut-n-paste/toolbar-editor/egg-toolbar-editor.c')
-rw-r--r--cut-n-paste/toolbar-editor/egg-toolbar-editor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cut-n-paste/toolbar-editor/egg-toolbar-editor.c b/cut-n-paste/toolbar-editor/egg-toolbar-editor.c
index b61bf1a1..d3c2223a 100644
--- a/cut-n-paste/toolbar-editor/egg-toolbar-editor.c
+++ b/cut-n-paste/toolbar-editor/egg-toolbar-editor.c
@@ -555,7 +555,11 @@ append_table (GtkTable *table, GList *items, gint y, gint width)
if (y > 0)
{
+#if GTK_CHECK_VERSION(3, 0, 0)
+ item = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
+#else
item = gtk_hseparator_new ();
+#endif
alignment = gtk_alignment_new (0.5, 0.5, 1.0, 0.0);
gtk_container_add (GTK_CONTAINER (alignment), item);
gtk_widget_show (alignment);