[recipes] chef tile: Add a setter for the chef
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] chef tile: Add a setter for the chef
- Date: Sun, 19 Feb 2017 13:37:54 +0000 (UTC)
commit f0f46d097a27231a4f2530b995151d0f415d81c6
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Feb 19 08:35:48 2017 -0500
chef tile: Add a setter for the chef
This will let us refresh tiles without recreating them.
src/gr-chef-tile.c | 8 ++++----
src/gr-chef-tile.h | 2 ++
2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/gr-chef-tile.c b/src/gr-chef-tile.c
index 387c265..30360f9 100644
--- a/src/gr-chef-tile.c
+++ b/src/gr-chef-tile.c
@@ -135,9 +135,9 @@ gr_chef_tile_recreate_css (void)
gtk_css_provider_load_from_data (provider, css->str, css->len, NULL);
}
-static void
-chef_tile_set_chef (GrChefTile *tile,
- GrChef *chef)
+void
+gr_chef_tile_set_chef (GrChefTile *tile,
+ GrChef *chef)
{
if (tile->chef) {
const char *elem;
@@ -166,7 +166,7 @@ gr_chef_tile_new (GrChef *chef)
GrChefTile *tile;
tile = g_object_new (GR_TYPE_CHEF_TILE, NULL);
- chef_tile_set_chef (tile, chef);
+ gr_chef_tile_set_chef (tile, chef);
return GTK_WIDGET (tile);
}
diff --git a/src/gr-chef-tile.h b/src/gr-chef-tile.h
index b44123f..20b7b48 100644
--- a/src/gr-chef-tile.h
+++ b/src/gr-chef-tile.h
@@ -31,6 +31,8 @@ G_DECLARE_FINAL_TYPE (GrChefTile, gr_chef_tile, GR, CHEF_TILE, GtkBox)
GtkWidget *gr_chef_tile_new (GrChef *chef);
GrChef *gr_chef_tile_get_chef (GrChefTile *tile);
+void gr_chef_tile_set_chef (GrChefTile *tile,
+ GrChef *chef);
void gr_chef_tile_recreate_css (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]