X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-account-view.c;h=b40ef6385ce84fb0efe5294426bc1b756cb7b7ff;hp=6afd0b549500163e398479af9d02f33f679fd62e;hb=63f43f42f299ec31bfe33e39ab6c8833387701f5;hpb=735b859586454405ffcd4f99455912d53a5faa8e 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)); + } +} +