From 63f43f42f299ec31bfe33e39ab6c8833387701f5 Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Fri, 6 Feb 2009 14:03:59 +0000 Subject: [PATCH] Track style changes in account view pmo-trunk-r7405 --- src/widgets/modest-account-view.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/widgets/modest-account-view.c b/src/widgets/modest-account-view.c index 6afd0b5..b40ef63 100644 --- a/src/widgets/modest-account-view.c +++ b/src/widgets/modest-account-view.c @@ -68,6 +68,7 @@ static void modest_account_view_select_first_account (ModestAccountView *account static void on_account_updated (ModestAccountMgr* mgr, gchar* account_name, gpointer user_data); static void update_account_view (ModestAccountMgr *account_mgr, ModestAccountView *view); +static void on_notify_style (GObject *obj, GParamSpec *spec, gpointer userdata); typedef enum { MODEST_ACCOUNT_VIEW_NAME_COLUMN, @@ -160,6 +161,7 @@ modest_account_view_init (ModestAccountView *obj) "widget_class \"*.ModestAccountView\" style :highest \"fremantle-modest-account-view\""); #endif + g_signal_connect (G_OBJECT (obj), "notify::style", G_CALLBACK (on_notify_style), (gpointer) obj); } static void @@ -857,3 +859,12 @@ on_display_name_changed (ModestAccountMgr *mgr, /* Update the view */ update_account_view (mgr, MODEST_ACCOUNT_VIEW (user_data)); } + +static void +on_notify_style (GObject *obj, GParamSpec *spec, gpointer userdata) +{ + if (strcmp ("style", spec->name) == 0) { + gtk_widget_queue_draw (GTK_WIDGET (obj)); + } +} + -- 1.7.9.5