From 68f27ce0c8a3ed44d1f1105970cc68326df6bad3 Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Thu, 12 Sep 2013 15:29:58 +0200 Subject: Bug #706008 - Workaround gnome-shell style change on focus change Avoid redrawing (thus loosing the selection and scroll position) of preview window on style change by defining the colors through CSS styles. On style change we just update the CSS color definitions and preview will update itself without redraw. --- addressbook/gui/widgets/eab-contact-formatter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addressbook') diff --git a/addressbook/gui/widgets/eab-contact-formatter.c b/addressbook/gui/widgets/eab-contact-formatter.c index 60beefa5c3..71f7275182 100644 --- a/addressbook/gui/widgets/eab-contact-formatter.c +++ b/addressbook/gui/widgets/eab-contact-formatter.c @@ -747,7 +747,7 @@ render_normal (EABContactFormatter *formatter, GString *buffer) { g_string_append (buffer, HTML_HEADER); - g_string_append (buffer, ""); + g_string_append (buffer,""); if (contact != NULL) { if (e_contact_get (contact, E_CONTACT_IS_LIST)) @@ -769,7 +769,7 @@ render_compact (EABContactFormatter *formatter, EContactPhoto *photo; g_string_append (buffer, HTML_HEADER); - g_string_append (buffer, "\n"); + g_string_append (buffer,""); if (contact == NULL) { g_string_append (buffer, ""); -- cgit v1.2.3