diff options
author | Roy Zhang <[email protected]> | 2015-10-04 00:49:54 +0800 |
---|---|---|
committer | monsta <[email protected]> | 2015-10-05 14:22:34 +0300 |
commit | a8197480aa9d58183b63158ae97ba9471ee383cf (patch) | |
tree | 87874cdc79a7f19321780de2ca78fbd644b84e4e | |
parent | 83c87e2e90b73baf66a6eae5f71fc70f8fbc0428 (diff) | |
download | mate-control-center-a8197480aa9d58183b63158ae97ba9471ee383cf.tar.bz2 mate-control-center-a8197480aa9d58183b63158ae97ba9471ee383cf.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 |