From e17c02744270c2f2b61fcc79504d36460d41f886 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 8a1c977..05cb14b 100644 --- a/src/hildon2/modest-msg-edit-window.c +++ b/src/hildon2/modest-msg-edit-window.c @@ -1502,10 +1502,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