From a8197480aa9d58183b63158ae97ba9471ee383cf Mon Sep 17 00:00:00 2001 From: Roy Zhang Date: Sun, 4 Oct 2015 00:49:54 +0800 Subject: appearance: Fix segmentation fault on closing This patch fixes #200 --- capplets/appearance/appearance-themes.c | 6 +++--- 1 file 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 -- cgit v1.2.1