pidgin/gtkutils.c

changeset 18278
06bf54cee797
parent 18275
b9633ef422b0
child 18281
f7dd07e1e434
equal deleted inserted replaced
18277:51a0f13284cd 18278:06bf54cee797
3105 pixels[(height - 2) * rowstride - 1] = 0xC0; 3105 pixels[(height - 2) * rowstride - 1] = 0xC0;
3106 pixels[height * rowstride - 5] = 0x80; 3106 pixels[height * rowstride - 5] = 0x80;
3107 pixels[height * rowstride - 9] = 0xC0; 3107 pixels[height * rowstride - 9] = 0xC0;
3108 } 3108 }
3109 3109
3110 const char *pidgin_get_dim_grey_string(GtkWidget *widget) {
3111 static char dim_grey_string[8] = "";
3112 GtkStyle *style;
3113
3114 if (!widget)
3115 return "dim grey";
3116
3117 style = gtk_widget_get_style(widget);
3118 if (!style)
3119 return "dim grey";
3120
3121 snprintf(dim_grey_string, sizeof(dim_grey_string), "#%02x%02x%02x",
3122 style->text_aa[GTK_STATE_NORMAL].red >> 8,
3123 style->text_aa[GTK_STATE_NORMAL].green >> 8,
3124 style->text_aa[GTK_STATE_NORMAL].blue >> 8);
3125 return dim_grey_string;
3126 }
3127
3110 #if !GTK_CHECK_VERSION(2,2,0) 3128 #if !GTK_CHECK_VERSION(2,2,0)
3111 GtkTreePath * 3129 GtkTreePath *
3112 gtk_tree_path_new_from_indices (gint first_index, ...) 3130 gtk_tree_path_new_from_indices (gint first_index, ...)
3113 { 3131 {
3114 int arg; 3132 int arg;

mercurial