From d79d74d77b6003ba90b2333d3939640816af4ac5 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Tue, 14 Jun 2016 20:00:57 +0200 Subject: GTK+-3 mate-color-button: Do not use deprecate composite-child API --- libmate-desktop/mate-colorbutton.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libmate-desktop') 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 -- cgit v1.2.1