diff options
Diffstat (limited to 'cut-n-paste')
-rw-r--r-- | cut-n-paste/toolbar-editor/egg-editable-toolbar.c | 4 | ||||
-rw-r--r-- | cut-n-paste/toolbar-editor/egg-toolbar-editor.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c index 9ebae01..f2a1b04 100644 --- a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c +++ b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c @@ -1794,7 +1794,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 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); |