summaryrefslogtreecommitdiff
path: root/mateweather
diff options
context:
space:
mode:
Diffstat (limited to 'mateweather')
-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);