summaryrefslogtreecommitdiff
path: root/gweather
diff options
context:
space:
mode:
authorAndre Klapper <a9016009@gmx.de>2010-04-23 00:46:25 +0200
committerAndre Klapper <a9016009@gmx.de>2010-04-23 16:48:59 +0200
commitd596fcf9846bb31823671ae83207ae796685e93d (patch)
treecf71205faa50cefa0cf1890eda70cf182c29ce5f /gweather
parentb4fdf2c7deee1aee18e34f7344cc2e59a9001e89 (diff)
Compile with -DGSEAL_ENABLE. Fixes bug 612473. Bumps gtk+ requirement to 2.18.
Diffstat (limited to 'gweather')
-rw-r--r--gweather/gweather-dialog.c4
-rw-r--r--gweather/gweather-pref.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/gweather/gweather-dialog.c b/gweather/gweather-dialog.c
index ba42bba5f..e276db0ed 100644
--- a/gweather/gweather-dialog.c
+++ b/gweather/gweather-dialog.c
@@ -218,7 +218,7 @@ gweather_dialog_create (GWeatherDialog *dialog)
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CLOSE);
gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);
- gtk_box_set_spacing (GTK_BOX (GTK_DIALOG (dialog)->vbox), 2);
+ gtk_box_set_spacing (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), 2);
gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);
if (gw_applet->gweather_pref.radar_enabled)
@@ -233,7 +233,7 @@ gweather_dialog_create (GWeatherDialog *dialog)
/* Must come after load geometry, otherwise it will get reset. */
gtk_window_set_resizable (GTK_WINDOW (dialog), TRUE);
- weather_vbox = GTK_DIALOG (dialog)->vbox;
+ weather_vbox = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
gtk_widget_show (weather_vbox);
weather_notebook = gtk_notebook_new ();
diff --git a/gweather/gweather-pref.c b/gweather/gweather-pref.c
index 58781891d..9366e3adb 100644
--- a/gweather/gweather-pref.c
+++ b/gweather/gweather-pref.c
@@ -816,7 +816,7 @@ gweather_pref_create (GWeatherPref *pref)
gtk_window_set_screen (GTK_WINDOW (pref),
gtk_widget_get_screen (GTK_WIDGET (pref->priv->applet->applet)));
- pref_vbox = GTK_DIALOG (pref)->vbox;
+ pref_vbox = gtk_dialog_get_content_area (GTK_DIALOG (pref));
gtk_box_set_spacing (GTK_BOX (pref_vbox), 2);
gtk_widget_show (pref_vbox);