[gnome-settings-daemon/gnome-3-4] Don't pass NULL where a dialog is expected
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-4] Don't pass NULL where a dialog is expected
- Date: Fri, 15 Jun 2012 10:10:43 +0000 (UTC)
commit 84c5007f8fd3641728922c5be68cf89129b2b820
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]