diff options
author | monsta <[email protected]> | 2016-01-15 14:13:23 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-01-15 15:44:56 +0300 |
commit | a6143c03e1c080954f5c581caa56bd141500c306 (patch) | |
tree | 4ffaa5c9c122578261834b5ead2b4deac077d339 /libslab/search-context-picker.c | |
parent | 854d41818845e0c89ae71add54a16d69419e8083 (diff) | |
download | mate-control-center-a6143c03e1c080954f5c581caa56bd141500c306.tar.bz2 mate-control-center-a6143c03e1c080954f5c581caa56bd141500c306.tar.xz |
[GTK+3] libslab: fix deprecated usage of GtkVSeparator
Diffstat (limited to 'libslab/search-context-picker.c')
-rw-r--r-- | libslab/search-context-picker.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libslab/search-context-picker.c b/libslab/search-context-picker.c index 397c98f0..fbd0b560 100644 --- a/libslab/search-context-picker.c +++ b/libslab/search-context-picker.c @@ -68,13 +68,20 @@ nld_search_context_picker_init (NldSearchContextPicker * picker) { NldSearchContextPickerPrivate *priv = NLD_SEARCH_CONTEXT_PICKER_GET_PRIVATE (picker); GtkBox *hbox; + GtkWidget *separator; hbox = GTK_BOX (gtk_hbox_new (FALSE, 10)); gtk_container_add (GTK_CONTAINER (picker), GTK_WIDGET (hbox)); priv->cur_icon = GTK_IMAGE (gtk_image_new ()); gtk_box_pack_start (hbox, GTK_WIDGET (priv->cur_icon), FALSE, FALSE, 0); - gtk_box_pack_start (hbox, gtk_vseparator_new (), FALSE, FALSE, 0); + +#if GTK_CHECK_VERSION (3, 0, 0) + separator = gtk_separator_new (GTK_ORIENTATION_VERTICAL); +#else + separator = gtk_vseparator_new (); +#endif + gtk_box_pack_start (hbox, separator, FALSE, FALSE, 0); gtk_box_pack_start (hbox, gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE), FALSE, FALSE, 0); gtk_widget_show_all (GTK_WIDGET (hbox)); |