diff options
author | Roy Zhang <[email protected]> | 2015-10-04 00:49:54 +0800 |
---|---|---|
committer | Roy Zhang <[email protected]> | 2015-10-04 00:49:54 +0800 |
commit | ac3768e41c6cdbbec5a27e05b7aed8a1cb375c8e (patch) | |
tree | b7d88412352ecf1677a326ab991d7ebc695214ee | |
parent | 9a442b00020ff10a1711ae72a29a9d87beead828 (diff) | |
download | mate-control-center-ac3768e41c6cdbbec5a27e05b7aed8a1cb375c8e.tar.bz2 mate-control-center-ac3768e41c6cdbbec5a27e05b7aed8a1cb375c8e.tar.xz |
appearance: Fix segmentation fault on closing
This patch fixes #200
-rw-r--r-- | capplets/appearance/appearance-themes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/capplets/appearance/appearance-themes.c b/capplets/appearance/appearance-themes.c index 6f051051..807d6143 100644 --- a/capplets/appearance/appearance-themes.c +++ b/capplets/appearance/appearance-themes.c @@ -775,11 +775,11 @@ theme_selection_changed_cb (GtkWidget *icon_view, AppearanceData *data) g_free (name); g_list_foreach (selection, (GFunc) gtk_tree_path_free, NULL); g_list_free (selection); - } - gtk_widget_set_sensitive (appearance_capplet_get_widget (data, "theme_delete"), + gtk_widget_set_sensitive (appearance_capplet_get_widget (data, "theme_delete"), theme_is_writable (theme)); - gtk_widget_set_sensitive (appearance_capplet_get_widget (data, "theme_save"), is_custom); + gtk_widget_set_sensitive (appearance_capplet_get_widget (data, "theme_save"), is_custom); + } } static void |