summaryrefslogtreecommitdiff
path: root/mateweather/src/mateweather-pref.c
diff options
context:
space:
mode:
Diffstat (limited to 'mateweather/src/mateweather-pref.c')
-rw-r--r--mateweather/src/mateweather-pref.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/mateweather/src/mateweather-pref.c b/mateweather/src/mateweather-pref.c
index c0408a68..2f5b268f 100644
--- a/mateweather/src/mateweather-pref.c
+++ b/mateweather/src/mateweather-pref.c
@@ -772,7 +772,9 @@ static void help_cb(GtkDialog* dialog, MateWeatherPref* pref)
if (error)
{
GtkWidget* error_dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("There was an error displaying help: %s"), error->message);
- g_signal_connect (G_OBJECT (error_dialog), "response", G_CALLBACK (gtk_widget_destroy), NULL);
+ g_signal_connect (error_dialog, "response",
+ G_CALLBACK (gtk_widget_destroy),
+ NULL);
gtk_window_set_resizable (GTK_WINDOW (error_dialog), FALSE);
gtk_window_set_screen (GTK_WINDOW (error_dialog), gtk_widget_get_screen (GTK_WIDGET (dialog)));
gtk_widget_show (error_dialog);
@@ -796,7 +798,6 @@ on_response (GtkDialog *dialog,
}
}
-
static void
mateweather_pref_create (MateWeatherPref* pref)
{
@@ -832,7 +833,6 @@ mateweather_pref_create (MateWeatherPref* pref)
GtkWidget* pref_find_hbox;
GtkWidget* image;
-
g_object_set (pref, "destroy-with-parent", TRUE, NULL);
gtk_window_set_title (GTK_WINDOW (pref), _("Weather Preferences"));
gtk_dialog_add_buttons (GTK_DIALOG (pref), "gtk-close", GTK_RESPONSE_CLOSE, "gtk-help", GTK_RESPONSE_HELP, NULL);
@@ -1035,15 +1035,15 @@ mateweather_pref_create (MateWeatherPref* pref)
}
#endif /* RADARMAP */
- #ifdef HAVE_LIBNOTIFY
- /* setup show-notifications button */
- pref->priv->basic_show_notifications_btn = gtk_check_button_new_with_mnemonic (_("Show _notifications"));
+#ifdef HAVE_LIBNOTIFY
+ /* setup show-notifications button */
+ pref->priv->basic_show_notifications_btn = gtk_check_button_new_with_mnemonic (_("Show _notifications"));
- if (!g_settings_is_writable (pref->priv->applet->settings, "show-notifications"))
- {
- hard_set_sensitive (pref->priv->basic_show_notifications_btn, FALSE);
- }
- #endif
+ if (!g_settings_is_writable (pref->priv->applet->settings, "show-notifications"))
+ {
+ hard_set_sensitive (pref->priv->basic_show_notifications_btn, FALSE);
+ }
+#endif
frame = create_hig_category (pref_basic_vbox, _("Update"));
@@ -1174,7 +1174,7 @@ mateweather_pref_create (MateWeatherPref* pref)
#ifdef RADARMAP
g_signal_connect (pref->priv->basic_radar_btn, "toggled", G_CALLBACK (on_radar_toggled), pref);
g_signal_connect (pref->priv->basic_radar_url_btn, "toggled", G_CALLBACK (on_use_radar_url_toggled), pref);
- g_signal_connect (pref->priv->basic_radar_url_entry, "focus_out_event", G_CALLBACK (on_radar_url_changed), pref);
+ g_signal_connect (pref->priv->basic_radar_url_entry, "focus-out-event", G_CALLBACK (on_radar_url_changed), pref);
#endif /* RADARMAP */
#ifdef HAVE_LIBNOTIFY
g_signal_connect (pref->priv->basic_show_notifications_btn, "toggled", G_CALLBACK (on_show_notifications_toggled), pref);