[recipes] Regenerate the chef css when saving a chef
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Regenerate the chef css when saving a chef
- Date: Sat, 18 Feb 2017 02:46:37 +0000 (UTC)
commit f608e5e99d8d08567d6523e43597ca3d85b301c0
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Feb 17 21:45:41 2017 -0500
Regenerate the chef css when saving a chef
Same idea as the previous patch.
src/gr-chef-dialog.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/gr-chef-dialog.c b/src/gr-chef-dialog.c
index ab1ca06..6caf703 100644
--- a/src/gr-chef-dialog.c
+++ b/src/gr-chef-dialog.c
@@ -33,6 +33,7 @@
#include "gr-app.h"
#include "gr-window.h"
#include "gr-utils.h"
+#include "gr-chef-tile.h"
struct _GrChefDialog
@@ -148,6 +149,7 @@ save_chef_dialog (GrChefDialog *self,
g_autofree char *description = NULL;
GtkTextBuffer *buffer;
GtkTextIter start, end;
+ gboolean ret;
if (gr_chef_is_readonly (self->chef))
return TRUE;
@@ -168,7 +170,7 @@ save_chef_dialog (GrChefDialog *self,
"description", description,
"image-path", self->image_path,
NULL);
- return gr_recipe_store_update_chef (store, self->chef, id, error);
+ ret = gr_recipe_store_update_chef (store, self->chef, id, error);
}
else {
g_auto(GStrv) strv = NULL;
@@ -188,8 +190,13 @@ save_chef_dialog (GrChefDialog *self,
"image-path", self->image_path,
NULL);
- return gr_recipe_store_add_chef (store, self->chef, error);
+ ret = gr_recipe_store_add_chef (store, self->chef, error);
}
+
+ if (ret)
+ gr_chef_tile_recreate_css ();
+
+ return ret;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]