comparison pidgin/gtkblist.c @ 18215:16bf31872b7a

Chat topics in status line of chat infopanes
author Sean Egan <seanegan@gmail.com>
date Wed, 20 Jun 2007 23:33:32 +0000
parents 77b9ceb83426
children e3a4ed0febd2
comparison
equal deleted inserted replaced
18214:bf0032658576 18215:16bf31872b7a
149 static char *dim_grey() 149 static char *dim_grey()
150 { 150 {
151 if (!gtkblist) 151 if (!gtkblist)
152 return "dim grey"; 152 return "dim grey";
153 if (!dim_grey_string[0]) { 153 if (!dim_grey_string[0]) {
154 GtkStyle *style = gtk_widget_get_style(gtkblist->treeview); 154 snprintf(dim_grey_string, sizeof(dim_grey_string), "%s", pidgin_get_dim_grey_string(gtkblist->treeview));
155 snprintf(dim_grey_string, sizeof(dim_grey_string), "#%02x%02x%02x",
156 style->text_aa[GTK_STATE_NORMAL].red >> 8,
157 style->text_aa[GTK_STATE_NORMAL].green >> 8,
158 style->text_aa[GTK_STATE_NORMAL].blue >> 8);
159 } 155 }
160 return dim_grey_string; 156 return dim_grey_string;
161 } 157 }
162 158
163 /*************************************************** 159 /***************************************************