no need to allocate a string for the theme when there is no theme

2005-08-01  Sebastien Bacher  <seb128@debian.org>

        * gnome-mouse-properties.c: (cursor_theme_changed): no need to allocate
        a string for the theme when there is no theme installed.
This commit is contained in:
Sebastien Bacher 2005-08-01 15:59:43 +00:00 committed by Sebastien Bacher
parent c5d1a9b0b7
commit a896b6888c
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-08-01 Sebastien Bacher <seb128@debian.org>
* gnome-mouse-properties.c: (cursor_theme_changed): no need to allocate
a string for the theme when there is no theme installed.
2005-08-01 Sebastien Bacher <seb128@debian.org>
* gnome-mouse-properties.c: (cursor_theme_changed):

View file

@ -471,10 +471,11 @@ cursor_theme_changed (GConfClient *client,
GtkTreeSelection* selection = gtk_tree_view_get_selection(view);
GtkTreeModel * smodel = gtk_tree_view_get_model(view);
GtkTreeModel * model = gtk_tree_model_sort_get_model(GTK_TREE_MODEL_SORT(smodel));
gchar * theme = gconf_client_get_string (client, CURSOR_THEME_KEY, NULL);
gchar * theme;
gint size = gconf_client_get_int (client, CURSOR_SIZE_KEY, NULL);
g_return_if_fail (gtk_tree_model_get_iter_first (model, &iter));
theme = gconf_client_get_string (client, CURSOR_THEME_KEY, NULL);
do {
gchar* theme_name;