From 38d2394892d7c1403b9c6a8932c8dea4a502f960 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Wed, 22 Jun 2016 20:57:19 +0200 Subject: GTK+-3: fix deprecated gtk_{v/h}separator_new --- cut-n-paste/toolbar-editor/egg-editable-toolbar.c | 4 ++++ cut-n-paste/toolbar-editor/egg-toolbar-editor.c | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'cut-n-paste') diff --git a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c index c81aea4c..d25d6b39 100644 --- a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c +++ b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c @@ -1822,7 +1822,11 @@ new_separator_pixbuf (void) GtkWidget *separator; GdkPixbuf *pixbuf; +#if GTK_CHECK_VERSION(3, 0, 0) + separator = gtk_separator_new (GTK_ORIENTATION_VERTICAL); +#else separator = gtk_vseparator_new (); +#endif pixbuf = new_pixbuf_from_widget (separator); return pixbuf; } 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); -- cgit v1.2.1