summaryrefslogtreecommitdiff
path: root/cut-n-paste/toolbar-editor/egg-toolbar-editor.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-12-14 19:39:26 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-14 19:39:26 +0100
commit39fb93e286d09f6cd77b5204aebbe39bfd2a48d6 (patch)
tree0c75941b8c0d1c304688c82109d26bc01ce5dd71 /cut-n-paste/toolbar-editor/egg-toolbar-editor.c
parentdcaa329c797fd6a716ab5e24aefe27c6cb989f32 (diff)
downloadeom-39fb93e286d09f6cd77b5204aebbe39bfd2a48d6.tar.bz2
eom-39fb93e286d09f6cd77b5204aebbe39bfd2a48d6.tar.xz
GTK3: 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 fb547d2..ce20612 100644
--- a/cut-n-paste/toolbar-editor/egg-toolbar-editor.c
+++ b/cut-n-paste/toolbar-editor/egg-toolbar-editor.c
@@ -566,7 +566,11 @@ append_grid (GtkGrid *grid, 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);
g_object_set (G_OBJECT (alignment), "expand", TRUE, NULL);
gtk_container_add (GTK_CONTAINER (alignment), item);