patches/control-center-16-mouse-dialog.diff
changeset 7666 145a64a74db2
parent 7665 7531f8e5c143
child 7667 585170e11e6b
equal deleted inserted replaced
7665:7531f8e5c143 7666:145a64a74db2
     1 --- control-center-2.14.1/capplets/mouse/gnome-mouse-properties.c-orig	2006-06-09 11:10:52.922270000 +0100
       
     2 +++ control-center-2.14.1/capplets/mouse/gnome-mouse-properties.c	2006-06-09 10:03:29.251483000 +0100
       
     3 @@ -532,6 +532,13 @@
       
     4  	model = gtk_tree_model_sort_get_model (GTK_TREE_MODEL_SORT(smodel));
       
     5  
       
     6  	cursor_font = gconf_client_get_string (client, CURSOR_FONT_KEY, NULL);
       
     7 +	
       
     8 +	/* If there's no value set, then don't select anything, and return */
       
     9 +	if ( cursor_font == NULL ) {
       
    10 +		gtk_tree_selection_unselect_all(selection);
       
    11 +		return;
       
    12 +	}
       
    13 +	
       
    14  	gtk_tree_model_get_iter_root (model, &iter);
       
    15  
       
    16  	do {