Fixes #340003
2006-06-11 Darren Kenny <darren.kenny@sun.com> Fixes #340003 * gnome-mouse-properties.c (cursor_font_changed): if no cursor font set in GConf, just unselect and return.
This commit is contained in:
parent
b4ec279384
commit
0b84184181
1 changed files with 7 additions and 0 deletions
|
@ -532,6 +532,13 @@ cursor_font_changed (GConfClient *client,
|
|||
model = gtk_tree_model_sort_get_model (GTK_TREE_MODEL_SORT(smodel));
|
||||
|
||||
cursor_font = gconf_client_get_string (client, CURSOR_FONT_KEY, NULL);
|
||||
|
||||
/* If there's no value set, then don't select anything, and return */
|
||||
if ( cursor_font == NULL ) {
|
||||
gtk_tree_selection_unselect_all(selection);
|
||||
return;
|
||||
}
|
||||
|
||||
gtk_tree_model_get_iter_root (model, &iter);
|
||||
|
||||
do {
|
||||
|
|
Loading…
Add table
Reference in a new issue