[gnome-builder] colorpicker: show needs-attention on a changed palette
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] colorpicker: show needs-attention on a changed palette
- Date: Tue, 26 Jul 2016 13:43:52 +0000 (UTC)
commit 5fc623f8d620205288f8e840a323eee8ac25a014
Author: Sebastien Lafargue <slafargue gnome org>
Date: Tue Jul 26 15:29:58 2016 +0200
colorpicker: show needs-attention on a changed palette
plugins/color-picker/gb-color-picker-prefs.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/color-picker/gb-color-picker-prefs.c b/plugins/color-picker/gb-color-picker-prefs.c
index 8604dc9..fc64fcf 100644
--- a/plugins/color-picker/gb-color-picker-prefs.c
+++ b/plugins/color-picker/gb-color-picker-prefs.c
@@ -396,6 +396,8 @@ create_palette_list_item (gpointer item,
g_signal_connect_object (row, "closed", G_CALLBACK (gb_color_picker_prefs_row_closed_cb), self,
G_CONNECT_SWAPPED);
g_signal_connect_object (row, "name-changed", G_CALLBACK (gb_color_picker_prefs_row_name_changed_cb),
self, G_CONNECT_SWAPPED);
+ g_object_bind_property (palette, "changed", row, "needs-attention", G_BINDING_DEFAULT);
+ gstyle_palette_set_changed (palette, FALSE);
return row;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]