[gnome-settings-daemon] Don't pass NULL where a dialog is expected



commit c2e31a4e2845fd2f2621daad5456de264af024f1
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jun 14 19:41:07 2012 -0400

    Don't pass NULL where a dialog is expected
    
    ...it leads to crash. Seen in
    https://bugzilla.redhat.com/show_bug.cgi?id=831666
    
    https://bugzilla.gnome.org/show_bug.cgi?id=678133

 .../a11y-keyboard/gsd-a11y-preferences-dialog.c    |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/a11y-keyboard/gsd-a11y-preferences-dialog.c b/plugins/a11y-keyboard/gsd-a11y-preferences-dialog.c
index 4d4cecf..d2fb735 100644
--- a/plugins/a11y-keyboard/gsd-a11y-preferences-dialog.c
+++ b/plugins/a11y-keyboard/gsd-a11y-preferences-dialog.c
@@ -321,7 +321,7 @@ setup_dialog (GsdA11yPreferencesDialog *dialog,
         g_signal_connect (widget,
                           "toggled",
                           G_CALLBACK (on_high_contrast_checkbutton_toggled),
-                          NULL);
+                          dialog);
         enabled = config_get_high_contrast (dialog);
         ui_set_high_contrast (dialog, enabled);
 
@@ -371,7 +371,7 @@ setup_dialog (GsdA11yPreferencesDialog *dialog,
         g_signal_connect (widget,
                           "toggled",
                           G_CALLBACK (on_large_print_checkbutton_toggled),
-                          NULL);
+                          dialog);
         enabled = config_get_large_print (dialog, &is_writable);
         ui_set_large_print (dialog, enabled);
         if (! is_writable) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]