summaryrefslogtreecommitdiff
path: root/mateweather/mateweather-dialog.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-08-01 20:02:29 +0200
committerraveit65 <[email protected]>2016-08-05 11:58:30 +0200
commit7776d6208bc804af5f0bce4c5b7c284b06bb052e (patch)
tree9e797d404e58df033ad20f3f6eba1ba06283394d /mateweather/mateweather-dialog.c
parent11bef7047cc1b962a7de2abb0997fae5b608460a (diff)
downloadmate-applets-7776d6208bc804af5f0bce4c5b7c284b06bb052e.tar.bz2
mate-applets-7776d6208bc804af5f0bce4c5b7c284b06bb052e.tar.xz
GTK+-3.0 weather-dialog: avoid deprecated gtk_scrolled_window_add_with_viewport ()
Diffstat (limited to 'mateweather/mateweather-dialog.c')
-rw-r--r--mateweather/mateweather-dialog.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mateweather/mateweather-dialog.c b/mateweather/mateweather-dialog.c
index 9e8344b8..b9df814e 100644
--- a/mateweather/mateweather-dialog.c
+++ b/mateweather/mateweather-dialog.c
@@ -617,7 +617,11 @@ static void mateweather_dialog_create(MateWeatherDialog* dialog)
ebox = gtk_event_box_new ();
gtk_widget_show (ebox);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_container_add (GTK_CONTAINER (imagescroll_window),ebox);
+#else
gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(imagescroll_window),ebox);
+#endif
gtk_box_pack_start (GTK_BOX (radar_vbox), imagescroll_window, TRUE, TRUE, 0);
gtk_widget_show (priv->radar_image);
gtk_widget_show (imagescroll_window);