summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-14 20:00:57 +0200
committerraveit65 <[email protected]>2016-06-15 09:45:44 +0200
commitd79d74d77b6003ba90b2333d3939640816af4ac5 (patch)
treec2f7467eafd6123bb8cc4a043af41e9cfec0f658
parent591507cf56423d21567d5fdf5599831cd3a53470 (diff)
downloadmate-desktop-d79d74d77b6003ba90b2333d3939640816af4ac5.tar.bz2
mate-desktop-d79d74d77b6003ba90b2333d3939640816af4ac5.tar.xz
GTK+-3 mate-color-button: Do not use deprecate composite-child API
-rw-r--r--libmate-desktop/mate-colorbutton.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmate-desktop/mate-colorbutton.c b/libmate-desktop/mate-colorbutton.c
index 53a6e0d..b559294 100644
--- a/libmate-desktop/mate-colorbutton.c
+++ b/libmate-desktop/mate-colorbutton.c
@@ -435,7 +435,9 @@ mate_color_button_init (MateColorButton *color_button)
/* Create the widgets */
color_button->priv = MATE_COLOR_BUTTON_GET_PRIVATE (color_button);
+#if !GTK_CHECK_VERSION(3,0,0)
gtk_widget_push_composite_child ();
+#endif
alignment = gtk_alignment_new (0.5, 0.5, 0.5, 1.0);
gtk_container_set_border_width (GTK_CONTAINER (alignment), 1);
@@ -491,7 +493,9 @@ mate_color_button_init (MateColorButton *color_button)
g_signal_connect (color_button, "drag-data-get",
G_CALLBACK (mate_color_button_drag_data_get), color_button);
+#if !GTK_CHECK_VERSION(3,0,0)
gtk_widget_pop_composite_child ();
+#endif
}
static void