[recipes] Be less agressive about unsetting the recipe
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Be less agressive about unsetting the recipe
- Date: Sun, 19 Feb 2017 12:25:13 +0000 (UTC)
commit b2635fba4b47387910a2bceeb23a349abe39bc01
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Feb 19 07:22:59 2017 -0500
Be less agressive about unsetting the recipe
There is code in gr-window.c that expects to get the
recipe from the edit page after calling save. These
changes broke it, and made recipes crash when entering
new recipes. Bad!
src/gr-edit-page.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/gr-edit-page.c b/src/gr-edit-page.c
index 70c30cc..4e02d70 100644
--- a/src/gr-edit-page.c
+++ b/src/gr-edit-page.c
@@ -1752,9 +1752,6 @@ gr_edit_page_clear (GrEditPage *page)
gr_image_viewer_revert_changes (GR_IMAGE_VIEWER (page->images));
- if (!page->recipe)
- return;
-
store = gr_app_get_recipe_store (GR_APP (g_application_get_default ()));
gtk_label_set_label (GTK_LABEL (page->name_label), _("Name Your Recipe"));
@@ -2098,7 +2095,6 @@ gr_edit_page_save (GrEditPage *page)
g_signal_handler_disconnect (page->recipe, page->index_handler_id);
page->index_handler_id = 0;
}
- g_clear_object (&page->recipe);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]