diff -r d5ab4262ea77 -r 6c9cb1e8b2d9 pidgin/gtkstatusbox.c --- a/pidgin/gtkstatusbox.c Sat Sep 03 16:03:29 2016 -0400 +++ b/pidgin/gtkstatusbox.c Sat Sep 03 17:08:37 2016 -0400 @@ -597,8 +597,7 @@ static void pidgin_status_box_refresh(PidginStatusBox *status_box) { - GtkStyle *style; - char aa_color[8]; + const char *aa_color; PurpleSavedStatus *saved_status; char *primary, *secondary, *text; const char *stock = NULL; @@ -607,12 +606,6 @@ gboolean account_status = FALSE; PurpleAccount *acct = (status_box->account) ? status_box->account : status_box->token_status_account; - style = gtk_widget_get_style(GTK_WIDGET(status_box)); - snprintf(aa_color, sizeof(aa_color), "#%02x%02x%02x", - style->text_aa[GTK_STATE_NORMAL].red >> 8, - style->text_aa[GTK_STATE_NORMAL].green >> 8, - style->text_aa[GTK_STATE_NORMAL].blue >> 8); - saved_status = purple_savedstatus_get_current(); if (status_box->account || (status_box->token_status_account @@ -693,6 +686,7 @@ stock = pidgin_stock_id_from_status_primitive(prim); } + aa_color = pidgin_get_dim_grey_string(GTK_WIDGET(status_box)); if (status_box->account != NULL) { text = g_strdup_printf("%s - %s", purple_account_get_username(status_box->account), @@ -2078,15 +2072,10 @@ } else { - GtkStyle *style; - char aa_color[8]; + const char *aa_color; gchar *escaped_title, *escaped_desc; - style = gtk_widget_get_style(GTK_WIDGET(status_box)); - snprintf(aa_color, sizeof(aa_color), "#%02x%02x%02x", - style->text_aa[GTK_STATE_NORMAL].red >> 8, - style->text_aa[GTK_STATE_NORMAL].green >> 8, - style->text_aa[GTK_STATE_NORMAL].blue >> 8); + aa_color = pidgin_get_dim_grey_string(GTK_WIDGET(status_box)); escaped_title = g_markup_escape_text(title, -1); escaped_desc = g_markup_escape_text(desc, -1);