From 80792fd3c363e5948bf8458f4ee3dd56b8297300 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergio=20Villar=20Sen=C3=ADn?= Date: Wed, 18 Nov 2009 20:31:08 +0100 Subject: [PATCH] Improved fix for last commit. Do not use static variables, we don't like them :) --- src/hildon2/modest-msg-edit-window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hildon2/modest-msg-edit-window.c b/src/hildon2/modest-msg-edit-window.c index 5ac30d8..0950b2f 100644 --- a/src/hildon2/modest-msg-edit-window.c +++ b/src/hildon2/modest-msg-edit-window.c @@ -1485,10 +1485,10 @@ set_msg (ModestMsgEditWindow *self, TnyMsg *msg, gboolean preserve_is_rich) static void color_button_clicked (GtkButton *button) { - static PipCalendarColor color = PipCalendarColorInvalid; + PipCalendarColor color; /* Show ColorPicker dialog */ - color = pip_color_picker_select_color(color, PipColorPickerText); + color = pip_color_picker_select_color(PipCalendarColorInvalid, PipColorPickerText); /* Check if some color is selected rather than dialog is dismissed */ if (color != PipCalendarColorInvalid) { -- 1.7.9.5