Mercurial > pidgin.yaz
comparison pidgin/gtkblist.c @ 23481:fc3600ba68f1
fixed group coloring
author | Justin Rodriguez <ffdragon@soc.pidgin.im> |
---|---|
date | Fri, 18 Jul 2008 22:31:28 +0000 |
parents | 2ccad3a8d9fe |
children | d17d6e83f428 |
comparison
equal
deleted
inserted
replaced
23480:2ccad3a8d9fe | 23481:fc3600ba68f1 |
---|---|
5978 gchar *title; | 5978 gchar *title; |
5979 gboolean biglist; | 5979 gboolean biglist; |
5980 GtkTreeIter iter; | 5980 GtkTreeIter iter; |
5981 GtkTreePath *path; | 5981 GtkTreePath *path; |
5982 gboolean expanded; | 5982 gboolean expanded; |
5983 GdkColor *bgcolor; | 5983 GdkColor *bgcolor = NULL; |
5984 GdkPixbuf *avatar = NULL; | 5984 GdkPixbuf *avatar = NULL; |
5985 PidginBlistTheme *theme; | 5985 PidginBlistTheme *theme; |
5986 | 5986 |
5987 if(!insert_node(list, gnode, &iter)) | 5987 if(!insert_node(list, gnode, &iter)) |
5988 return; | 5988 return; |
5989 | 5989 |
5990 theme = pidgin_blist_get_theme(); | 5990 theme = pidgin_blist_get_theme(); |
5991 | 5991 |
5992 /*if(theme == NULL){ | 5992 if (theme == NULL) |
5993 bgcolor = &(gtkblist->treeview->style->bg[GTK_STATE_ACTIVE]); | 5993 bgcolor = &(gtkblist->treeview->style->bg[GTK_STATE_ACTIVE]); |
5994 g_print("\nNULL\n"); | 5994 else if (purple_blist_node_get_bool(gnode, "collapsed") || count <= 0) |
5995 } | 5995 bgcolor = pidgin_blist_theme_get_collapsed_background_color(theme); |
5996 else if(purple_blist_node_get_bool(gnode, "collapsed")) | 5996 else bgcolor = pidgin_blist_theme_get_expanded_background_color(theme); |
5997 bgcolor = (pidgin_blist_theme_get_collapsed_text_info(theme))->color; | |
5998 else bgcolor = (pidgin_blist_theme_get_expanded_text_info(theme))->color; | |
5999 | |
6000 g_print("\n\n\%s\n\n", gdk_color_to_string(&bgcolor));*/ | |
6001 | 5997 |
6002 path = gtk_tree_model_get_path(GTK_TREE_MODEL(gtkblist->treemodel), &iter); | 5998 path = gtk_tree_model_get_path(GTK_TREE_MODEL(gtkblist->treemodel), &iter); |
6003 expanded = gtk_tree_view_row_expanded(GTK_TREE_VIEW(gtkblist->treeview), path); | 5999 expanded = gtk_tree_view_row_expanded(GTK_TREE_VIEW(gtkblist->treeview), path); |
6004 gtk_tree_path_free(path); | 6000 gtk_tree_path_free(path); |
6005 | 6001 |
6013 gtk_tree_store_set(gtkblist->treemodel, &iter, | 6009 gtk_tree_store_set(gtkblist->treemodel, &iter, |
6014 STATUS_ICON_VISIBLE_COLUMN, FALSE, | 6010 STATUS_ICON_VISIBLE_COLUMN, FALSE, |
6015 STATUS_ICON_COLUMN, NULL, | 6011 STATUS_ICON_COLUMN, NULL, |
6016 NAME_COLUMN, title, | 6012 NAME_COLUMN, title, |
6017 NODE_COLUMN, gnode, | 6013 NODE_COLUMN, gnode, |
6018 BGCOLOR_COLUMN, &bgcolor, | 6014 BGCOLOR_COLUMN, bgcolor, |
6019 GROUP_EXPANDER_COLUMN, TRUE, | 6015 GROUP_EXPANDER_COLUMN, TRUE, |
6020 GROUP_EXPANDER_VISIBLE_COLUMN, TRUE, | 6016 GROUP_EXPANDER_VISIBLE_COLUMN, TRUE, |
6021 CONTACT_EXPANDER_VISIBLE_COLUMN, FALSE, | 6017 CONTACT_EXPANDER_VISIBLE_COLUMN, FALSE, |
6022 BUDDY_ICON_COLUMN, avatar, | 6018 BUDDY_ICON_COLUMN, avatar, |
6023 BUDDY_ICON_VISIBLE_COLUMN, biglist, | 6019 BUDDY_ICON_VISIBLE_COLUMN, biglist, |