universal-access: Avoid crashing when GConf is broken

Or when metacity is badly installed. gconf_value_get_string()
_can_ return NULL.

https://bugzilla.redhat.com/show_bug.cgi?id=751007
This commit is contained in:
Bastien Nocera 2011-11-11 13:17:26 +00:00
parent ab33ef40dc
commit 1ce466f80b

View file

@ -574,7 +574,7 @@ visual_bell_type_notify_cb (GConfClient *client,
value = gconf_value_get_string (entry->value);
if (!strcmp ("frame_flash", value))
if (g_strcmp0 ("frame_flash", value) == 0)
widget = WID (panel->priv->builder, "hearing_flash_window_title_button");
else
widget = WID (panel->priv->builder, "hearing_flash_screen_button");