[gnome-builder] color-picker: close the panel when disabling highlight coolors
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] color-picker: close the panel when disabling highlight coolors
- Date: Fri, 8 Sep 2017 21:54:30 +0000 (UTC)
commit dabd6417ae409605f5213cc4a1f25573ec93c5ac
Author: Sebastien Lafargue <slafargue gnome org>
Date: Fri Sep 8 23:48:26 2017 +0200
color-picker: close the panel when disabling highlight coolors
.../gb-color-picker-document-monitor.c | 1 +
.../color-picker/gb-color-picker-editor-addin.c | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/color-picker/gb-color-picker-document-monitor.c
b/plugins/color-picker/gb-color-picker-document-monitor.c
index 4974a8d..df86327 100644
--- a/plugins/color-picker/gb-color-picker-document-monitor.c
+++ b/plugins/color-picker/gb-color-picker-document-monitor.c
@@ -464,6 +464,7 @@ start_monitor (GbColorPickerDocumentMonitor *self)
G_CALLBACK (cursor_moved_cb),
self,
G_CONNECT_SWAPPED | G_CONNECT_AFTER);
+}
static void
block_signals (GbColorPickerDocumentMonitor *self,
diff --git a/plugins/color-picker/gb-color-picker-editor-addin.c
b/plugins/color-picker/gb-color-picker-editor-addin.c
index a2653cb..dc84cbe 100644
--- a/plugins/color-picker/gb-color-picker-editor-addin.c
+++ b/plugins/color-picker/gb-color-picker-editor-addin.c
@@ -218,6 +218,8 @@ gb_color_picker_editor_addin_hide_panel (GbColorPickerEditorAddin *self)
/* For the case we'll add more code here */
if (self->panel == NULL)
return;
+
+ g_object_set (self->editor, "right-visible", FALSE, NULL);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]