[evolution] Bug 733918 - Color chooser for citation color is not working in Composer ][
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 733918 - Color chooser for citation color is not working in Composer ][
- Date: Thu, 31 Jul 2014 17:31:00 +0000 (UTC)
commit 3c57850311b0d9112e003b687058c678845259d0
Author: Milan Crha <mcrha redhat com>
Date: Thu Jul 31 19:29:47 2014 +0200
Bug 733918 - Color chooser for citation color is not working in Composer ][
May remember the previous function only once, to not end in a recursion.
e-util/e-color-chooser-widget.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-color-chooser-widget.c b/e-util/e-color-chooser-widget.c
index 7091324..530f199 100644
--- a/e-util/e-color-chooser-widget.c
+++ b/e-util/e-color-chooser-widget.c
@@ -240,8 +240,10 @@ e_color_chooser_widget_init (EColorChooserWidget *widget)
if (swatch) {
GtkWidgetClass *swatch_class;
swatch_class = GTK_WIDGET_GET_CLASS (swatch);
- origin_swatch_button_press_event = swatch_class->button_press_event;
- swatch_class->button_press_event = color_chooser_widget_button_press_event;
+ if (swatch_class->button_press_event != color_chooser_widget_button_press_event) {
+ origin_swatch_button_press_event = swatch_class->button_press_event;
+ swatch_class->button_press_event = color_chooser_widget_button_press_event;
+ }
}
g_signal_connect (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]