annotate pidgin/gtkblist-theme.c @ 25309:5fa132f530f3

propagate from branch 'im.pidgin.pidgin' (head 3fa3a746613f1d6095334bfc54443d61166dd9fa) to branch 'im.pidgin.pidgin.next.minor' (head f3bb9458fa15c80c60545652e3145916f069d494)
author Richard Laager <rlaager@wiktel.com>
date Sun, 02 Nov 2008 22:18:13 +0000
parents 9525fb966efb
children dc2584ebaa1a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
1 /*
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
2 * Buddy List Themes for Pidgin
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
3 *
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
4 * Pidgin is the legal property of its developers, whose names are too numerous
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
5 * to list here. Please refer to the COPYRIGHT file distributed with this
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
6 * source distribution.
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
7 *
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
8 * This program is free software; you can redistribute it and/or modify
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
9 * it under the terms of the GNU General Public License as published by
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
10 * the Free Software Foundation; either version 2 of the License, or
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
11 * (at your option) any later version.
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
12 *
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
13 * This program is distributed in the hope that it will be useful,
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
16 * GNU General Public License for more details.
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
17 *
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
18 * You should have received a copy of the GNU General Public License
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
19 * along with this program; if not, write to the Free Software
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
21 *
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
22 */
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
23
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
24 #include "gtkblist-theme.h"
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
25
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
26 #define PIDGIN_BLIST_THEME_GET_PRIVATE(Gobject) \
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
27 ((PidginBlistThemePrivate *) ((PIDGIN_BLIST_THEME(Gobject))->priv))
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
28
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
29 /******************************************************************************
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
30 * Structs
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
31 *****************************************************************************/
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
32 typedef struct {
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
33 /* Buddy list */
23702
9525fb966efb theme loader cleanup, and remove a few warnings
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23484
diff changeset
34 gdouble opacity;
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
35 GdkColor *bgcolor;
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
36 PidginBlistLayout *layout;
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
37
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
38 /* groups */
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
39 GdkColor *expanded_color;
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
40 FontColorPair *expanded;
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
41
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
42 GdkColor *collapsed_color;
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
43 FontColorPair *collapsed;
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
44
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
45 /* buddy */
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
46 GdkColor *contact_color;
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
47
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
48 FontColorPair *contact;
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
49
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
50 FontColorPair *online;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
51 FontColorPair *away;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
52 FontColorPair *offline;
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
53 FontColorPair *idle;
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
54 FontColorPair *message;
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
55
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
56 FontColorPair *status;
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
57
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
58 } PidginBlistThemePrivate;
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
59
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
60 /******************************************************************************
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
61 * Globals
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
62 *****************************************************************************/
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
63
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
64 static GObjectClass *parent_class = NULL;
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
65
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
66 /******************************************************************************
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
67 * Enums
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
68 *****************************************************************************/
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
69 enum {
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
70 PROP_ZERO = 0,
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
71 PROP_BACKGROUND_COLOR,
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
72 PROP_OPACITY,
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
73 PROP_LAYOUT,
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
74 PROP_EXPANDED_COLOR,
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
75 PROP_EXPANDED_TEXT,
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
76 PROP_COLLAPSED_COLOR,
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
77 PROP_COLLAPSED_TEXT,
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
78 PROP_CONTACT_COLOR,
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
79 PROP_CONTACT,
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
80 PROP_ONLINE,
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
81 PROP_AWAY,
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
82 PROP_OFFLINE,
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
83 PROP_IDLE,
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
84 PROP_MESSAGE,
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
85 PROP_STATUS,
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
86 };
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
87
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
88 /******************************************************************************
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
89 * Helpers
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
90 *****************************************************************************/
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
91
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
92 void
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
93 free_font_and_color(FontColorPair *pair)
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
94 {
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
95 if(pair != NULL){
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
96 if (pair->font)
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
97 g_free(pair->font);
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
98 if (pair->color)
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
99 g_free(pair->color);
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
100 g_free(pair);
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
101 }
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
102 }
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
103
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
104 /******************************************************************************
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
105 * GObject Stuff
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
106 *****************************************************************************/
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
107
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
108 static void
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
109 pidgin_blist_theme_init(GTypeInstance *instance,
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
110 gpointer klass)
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
111 {
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
112 (PIDGIN_BLIST_THEME(instance))->priv = g_new0(PidginBlistThemePrivate, 1);
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
113 }
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
114
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
115 static void
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
116 pidgin_blist_theme_get_property(GObject *obj, guint param_id, GValue *value,
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
117 GParamSpec *psec)
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
118 {
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
119 PidginBlistTheme *theme = PIDGIN_BLIST_THEME(obj);
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
120
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
121 switch(param_id) {
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
122 case PROP_BACKGROUND_COLOR:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
123 g_value_set_pointer(value, pidgin_blist_theme_get_background_color(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
124 break;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
125 case PROP_OPACITY:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
126 g_value_set_double(value, pidgin_blist_theme_get_opacity(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
127 break;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
128 case PROP_LAYOUT:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
129 g_value_set_pointer(value, pidgin_blist_theme_get_layout(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
130 break;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
131 case PROP_EXPANDED_COLOR:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
132 g_value_set_pointer(value, pidgin_blist_theme_get_expanded_background_color(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
133 break;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
134 case PROP_EXPANDED_TEXT:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
135 g_value_set_pointer(value, pidgin_blist_theme_get_expanded_text_info(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
136 break;
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
137 case PROP_COLLAPSED_COLOR:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
138 g_value_set_pointer(value, pidgin_blist_theme_get_collapsed_background_color(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
139 break;
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
140 case PROP_COLLAPSED_TEXT:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
141 g_value_set_pointer(value, pidgin_blist_theme_get_collapsed_text_info(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
142 break;
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
143 case PROP_CONTACT_COLOR:
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
144 g_value_set_pointer(value, pidgin_blist_theme_get_contact_color(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
145 break;
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
146 case PROP_CONTACT:
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
147 g_value_set_pointer(value, pidgin_blist_theme_get_contact_text_info(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
148 break;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
149 case PROP_ONLINE:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
150 g_value_set_pointer(value, pidgin_blist_theme_get_online_text_info(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
151 break;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
152 case PROP_AWAY:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
153 g_value_set_pointer(value, pidgin_blist_theme_get_away_text_info(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
154 break;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
155 case PROP_OFFLINE:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
156 g_value_set_pointer(value, pidgin_blist_theme_get_offline_text_info(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
157 break;
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
158 case PROP_IDLE:
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
159 g_value_set_pointer(value, pidgin_blist_theme_get_idle_text_info(theme));
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
160 break;
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
161 case PROP_MESSAGE:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
162 g_value_set_pointer(value, pidgin_blist_theme_get_unread_message_text_info(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
163 break;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
164 case PROP_STATUS:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
165 g_value_set_pointer(value, pidgin_blist_theme_get_status_text_info(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
166 break;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
167 default:
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
168 G_OBJECT_WARN_INVALID_PROPERTY_ID(obj, param_id, psec);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
169 break;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
170 }
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
171 }
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
172
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
173 static void
23702
9525fb966efb theme loader cleanup, and remove a few warnings
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23484
diff changeset
174 pidgin_blist_theme_set_property(GObject *obj, guint param_id, const GValue *value,
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
175 GParamSpec *psec)
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
176 {
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
177 PidginBlistTheme *theme = PIDGIN_BLIST_THEME(obj);
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
178
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
179 switch(param_id) {
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
180 case PROP_BACKGROUND_COLOR:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
181 pidgin_blist_theme_set_background_color(theme, g_value_get_pointer(value));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
182 break;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
183 case PROP_OPACITY:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
184 pidgin_blist_theme_set_opacity(theme, g_value_get_double(value));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
185 break;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
186 case PROP_LAYOUT:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
187 pidgin_blist_theme_set_layout(theme, g_value_get_pointer(value));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
188 break;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
189 case PROP_EXPANDED_COLOR:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
190 pidgin_blist_theme_set_expanded_background_color(theme, g_value_get_pointer(value));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
191 break;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
192 case PROP_EXPANDED_TEXT:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
193 pidgin_blist_theme_set_expanded_text_info(theme, g_value_get_pointer(value));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
194 break;
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
195 case PROP_COLLAPSED_COLOR:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
196 pidgin_blist_theme_set_collapsed_background_color(theme, g_value_get_pointer(value));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
197 break;
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
198 case PROP_COLLAPSED_TEXT:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
199 pidgin_blist_theme_set_collapsed_text_info(theme, g_value_get_pointer(value));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
200 break;
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
201 case PROP_CONTACT_COLOR:
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
202 pidgin_blist_theme_set_contact_color(theme, g_value_get_pointer(value));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
203 break;
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
204 case PROP_CONTACT:
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
205 pidgin_blist_theme_set_contact_text_info(theme, g_value_get_pointer(value));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
206 break;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
207 case PROP_ONLINE:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
208 pidgin_blist_theme_set_online_text_info(theme, g_value_get_pointer(value));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
209 break;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
210 case PROP_AWAY:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
211 pidgin_blist_theme_set_away_text_info(theme, g_value_get_pointer(value));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
212 break;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
213 case PROP_OFFLINE:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
214 pidgin_blist_theme_set_offline_text_info(theme, g_value_get_pointer(value));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
215 break;
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
216 case PROP_IDLE:
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
217 pidgin_blist_theme_set_idle_text_info(theme, g_value_get_pointer(value));
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
218 break;
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
219 case PROP_MESSAGE:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
220 pidgin_blist_theme_set_unread_message_text_info(theme, g_value_get_pointer(value));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
221 break;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
222 case PROP_STATUS:
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
223 pidgin_blist_theme_set_status_text_info(theme, g_value_get_pointer(value));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
224 break;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
225 default:
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
226 G_OBJECT_WARN_INVALID_PROPERTY_ID(obj, param_id, psec);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
227 break;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
228 }
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
229 }
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
230 static void
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
231 pidgin_blist_theme_finalize (GObject *obj)
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
232 {
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
233 PidginBlistThemePrivate *priv;
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
234
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
235 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(obj);
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
236
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
237 /* Buddy List */
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
238 g_free(priv->layout);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
239
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
240 /* Group */
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
241 free_font_and_color(priv->expanded);
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
242 free_font_and_color(priv->collapsed);
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
243
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
244 /* Buddy */
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
245 free_font_and_color(priv->contact);
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
246 free_font_and_color(priv->online);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
247 free_font_and_color(priv->away);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
248 free_font_and_color(priv->offline);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
249 free_font_and_color(priv->message);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
250 free_font_and_color(priv->status);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
251
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
252 g_free(priv);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
253
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
254 parent_class->finalize (obj);
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
255 }
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
256
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
257 static void
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
258 pidgin_blist_theme_class_init (PidginBlistThemeClass *klass)
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
259 {
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
260 GObjectClass *obj_class = G_OBJECT_CLASS(klass);
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
261 GParamSpec *pspec;
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
262
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
263 parent_class = g_type_class_peek_parent (klass);
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
264
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
265 obj_class->get_property = pidgin_blist_theme_get_property;
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
266 obj_class->set_property = pidgin_blist_theme_set_property;
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
267 obj_class->finalize = pidgin_blist_theme_finalize;
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
268
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
269 /* Buddy List */
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
270 pspec = g_param_spec_pointer("background-color", "Background Color",
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
271 "The background color for the buddy list",
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
272 G_PARAM_READWRITE);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
273 g_object_class_install_property(obj_class, PROP_BACKGROUND_COLOR, pspec);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
274
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
275 pspec = g_param_spec_pointer("layout", "Layout",
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
276 "The layout of icons, name, and status of the blist",
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
277 G_PARAM_READWRITE);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
278
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
279 g_object_class_install_property(obj_class, PROP_LAYOUT, pspec);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
280
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
281 /* Group */
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
282 pspec = g_param_spec_pointer("expanded-color", "Expanded Background Color",
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
283 "The background color of an expanded group",
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
284 G_PARAM_READWRITE);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
285 g_object_class_install_property(obj_class, PROP_EXPANDED_COLOR, pspec);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
286
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
287 pspec = g_param_spec_pointer("expanded-text", "Expanded Text",
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
288 "The text information for when a group is expanded",
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
289 G_PARAM_READWRITE);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
290 g_object_class_install_property(obj_class, PROP_EXPANDED_TEXT, pspec);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
291
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
292 pspec = g_param_spec_pointer("collapsed-color", "Collapsed Background Color",
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
293 "The background color of a collapsed group",
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
294 G_PARAM_READWRITE);
23481
fc3600ba68f1 fixed group coloring
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23479
diff changeset
295 g_object_class_install_property(obj_class, PROP_COLLAPSED_COLOR, pspec);
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
296
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
297 pspec = g_param_spec_pointer("collapsed-text", "Collapsed Text",
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
298 "The text information for when a group is collapsed",
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
299 G_PARAM_READWRITE);
23481
fc3600ba68f1 fixed group coloring
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23479
diff changeset
300 g_object_class_install_property(obj_class, PROP_COLLAPSED_TEXT, pspec);
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
301
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
302 /* Buddy */
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
303 pspec = g_param_spec_pointer("contact-color", "Contact/Chat Background Color",
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
304 "The background color of a contact or chat",
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
305 G_PARAM_READWRITE);
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
306 g_object_class_install_property(obj_class, PROP_CONTACT_COLOR, pspec);
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
307
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
308 pspec = g_param_spec_pointer("contact", "Contact Text",
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
309 "The text information for when a contact is expanded",
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
310 G_PARAM_READWRITE);
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
311 g_object_class_install_property(obj_class, PROP_CONTACT, pspec);
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
312
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
313 pspec = g_param_spec_pointer("online", "On-line Text",
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
314 "The text information for when a buddy is online",
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
315 G_PARAM_READWRITE);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
316 g_object_class_install_property(obj_class, PROP_ONLINE, pspec);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
317
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
318 pspec = g_param_spec_pointer("away", "Away Text",
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
319 "The text information for when a buddy is away",
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
320 G_PARAM_READWRITE);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
321 g_object_class_install_property(obj_class, PROP_AWAY, pspec);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
322
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
323 pspec = g_param_spec_pointer("offline", "Off-line Text",
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
324 "The text information for when a buddy is off-line",
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
325 G_PARAM_READWRITE);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
326 g_object_class_install_property(obj_class, PROP_OFFLINE, pspec);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
327
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
328 pspec = g_param_spec_pointer("idle", "Idle Text",
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
329 "The text information for when a buddy is idle",
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
330 G_PARAM_READWRITE);
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
331 g_object_class_install_property(obj_class, PROP_IDLE, pspec);
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
332
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
333 pspec = g_param_spec_pointer("message", "Message Text",
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
334 "The text information for when a buddy is has an unread message",
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
335 G_PARAM_READWRITE);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
336 g_object_class_install_property(obj_class, PROP_MESSAGE, pspec);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
337
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
338 pspec = g_param_spec_pointer("status", "Status Text",
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
339 "The text information for a buddy's status",
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
340 G_PARAM_READWRITE);
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
341 g_object_class_install_property(obj_class, PROP_STATUS, pspec);
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
342 }
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
343
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
344 GType
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
345 pidgin_blist_theme_get_type (void)
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
346 {
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
347 static GType type = 0;
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
348 if (type == 0) {
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
349 static GTypeInfo info = {
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
350 sizeof (PidginBlistThemeClass),
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
351 NULL, /* base_init */
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
352 NULL, /* base_finalize */
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
353 (GClassInitFunc)pidgin_blist_theme_class_init, /* class_init */
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
354 NULL, /* class_finalize */
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
355 NULL, /* class_data */
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
356 sizeof (PidginBlistTheme),
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
357 0, /* n_preallocs */
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
358 pidgin_blist_theme_init, /* instance_init */
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
359 NULL, /* value table */
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
360 };
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
361 type = g_type_register_static (PURPLE_TYPE_THEME,
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
362 "PidginBlistTheme",
23475
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
363 &info, 0);
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
364 }
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
365 return type;
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
366 }
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
367
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
368
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
369 /*****************************************************************************
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
370 * Public API functions
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
371 *****************************************************************************/
1242a922a4bc start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff changeset
372
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
373 /* get methods */
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
374 GdkColor *
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
375 pidgin_blist_theme_get_background_color(PidginBlistTheme *theme)
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
376 {
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
377 PidginBlistThemePrivate *priv;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
378
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
379 g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL);
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
380
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
381 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
382
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
383 return priv->bgcolor;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
384 }
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
385
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
386 gdouble
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
387 pidgin_blist_theme_get_opacity(PidginBlistTheme *theme)
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
388 {
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
389 PidginBlistThemePrivate *priv;
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
390
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
391 g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), 1.0);
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
392
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
393 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
394
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
395 return priv->opacity;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
396 }
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
397
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
398 PidginBlistLayout *
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
399 pidgin_blist_theme_get_layout(PidginBlistTheme *theme)
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
400 {
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
401 PidginBlistThemePrivate *priv;
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
402
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
403 g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL);
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
404
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
405 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
406
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
407 return priv->layout;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
408 }
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
409
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
410 GdkColor *
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
411 pidgin_blist_theme_get_expanded_background_color(PidginBlistTheme *theme)
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
412 {
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
413 PidginBlistThemePrivate *priv;
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
414
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
415 g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL);
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
416
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
417 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
418
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
419 return priv->expanded_color;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
420 }
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
421
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
422 FontColorPair *
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
423 pidgin_blist_theme_get_expanded_text_info(PidginBlistTheme *theme)
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
424 {
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
425 PidginBlistThemePrivate *priv;
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
426
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
427 g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL);
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
428
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
429 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
430
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
431 return priv->expanded;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
432 }
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
433
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
434 GdkColor *
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
435 pidgin_blist_theme_get_collapsed_background_color(PidginBlistTheme *theme)
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
436 {
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
437 PidginBlistThemePrivate *priv;
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
438
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
439 g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL);
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
440
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
441 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
442
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
443 return priv->collapsed_color;
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
444 }
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
445
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
446 FontColorPair *
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
447 pidgin_blist_theme_get_collapsed_text_info(PidginBlistTheme *theme)
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
448 {
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
449 PidginBlistThemePrivate *priv;
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
450
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
451 g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL);
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
452
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
453 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
454
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
455 return priv->collapsed;
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
456 }
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
457
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
458 GdkColor *
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
459 pidgin_blist_theme_get_contact_color(PidginBlistTheme *theme)
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
460 {
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
461 PidginBlistThemePrivate *priv;
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
462
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
463 g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL);
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
464
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
465 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
466
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
467 return priv->contact_color;
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
468 }
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
469
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
470 FontColorPair *
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
471 pidgin_blist_theme_get_contact_text_info(PidginBlistTheme *theme)
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
472 {
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
473 PidginBlistThemePrivate *priv;
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
474
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
475 g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL);
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
476
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
477 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
478
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
479 return priv->contact;
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
480 }
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
481
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
482 FontColorPair *
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
483 pidgin_blist_theme_get_online_text_info(PidginBlistTheme *theme)
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
484 {
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
485 PidginBlistThemePrivate *priv;
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
486
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
487 g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL);
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
488
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
489 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
490
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
491 return priv->online;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
492 }
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
493
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
494 FontColorPair *
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
495 pidgin_blist_theme_get_away_text_info(PidginBlistTheme *theme)
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
496 {
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
497 PidginBlistThemePrivate *priv;
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
498
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
499 g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL);
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
500
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
501 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
502
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
503 return priv->away;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
504 }
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
505
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
506 FontColorPair *
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
507 pidgin_blist_theme_get_offline_text_info(PidginBlistTheme *theme)
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
508 {
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
509 PidginBlistThemePrivate *priv;
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
510
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
511 g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL);
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
512
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
513 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
514
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
515 return priv->offline;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
516 }
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
517
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
518 FontColorPair *
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
519 pidgin_blist_theme_get_idle_text_info(PidginBlistTheme *theme)
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
520 {
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
521 PidginBlistThemePrivate *priv;
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
522
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
523 g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL);
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
524
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
525 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
526
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
527 return priv->idle;
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
528 }
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
529
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
530 FontColorPair *
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
531 pidgin_blist_theme_get_unread_message_text_info(PidginBlistTheme *theme)
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
532 {
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
533 PidginBlistThemePrivate *priv;
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
534
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
535 g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL);
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
536
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
537 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
538
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
539 return priv->message;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
540 }
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
541
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
542 FontColorPair *
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
543 pidgin_blist_theme_get_status_text_info(PidginBlistTheme *theme)
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
544 {
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
545 PidginBlistThemePrivate *priv;
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
546
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
547 g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL);
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
548
23478
4aeef8c3cce3 restructured much of the loader and themes for the buddy list, along with a basic trial of group background
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23476
diff changeset
549 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
23476
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
550
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
551 return priv->status;
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
552 }
8941e76e0762 flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23475
diff changeset
553
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
554 /* Set Methods */
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
555 void
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
556 pidgin_blist_theme_set_background_color(PidginBlistTheme *theme, GdkColor *color)
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
557 {
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
558 PidginBlistThemePrivate *priv;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
559
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
560 g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
561
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
562 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
563
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
564 priv->bgcolor = color;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
565 }
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
566
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
567 void
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
568 pidgin_blist_theme_set_opacity(PidginBlistTheme *theme, gdouble opacity)
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
569 {
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
570 PidginBlistThemePrivate *priv;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
571
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
572 g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme) || opacity < 0.0 || opacity > 1.0);
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
573
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
574 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
575
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
576 priv->opacity = opacity;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
577 }
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
578
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
579 void
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
580 pidgin_blist_theme_set_layout(PidginBlistTheme *theme, PidginBlistLayout *layout)
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
581 {
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
582 PidginBlistThemePrivate *priv;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
583
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
584 g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
585
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
586 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
587
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
588 g_free(priv->layout);
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
589 priv->layout = layout;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
590 }
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
591
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
592 void
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
593 pidgin_blist_theme_set_expanded_background_color(PidginBlistTheme *theme, GdkColor *color)
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
594 {
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
595 PidginBlistThemePrivate *priv;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
596
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
597 g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
598
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
599 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
600
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
601 priv->expanded_color = color;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
602 }
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
603
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
604 void
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
605 pidgin_blist_theme_set_expanded_text_info(PidginBlistTheme *theme, FontColorPair *pair)
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
606 {
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
607 PidginBlistThemePrivate *priv;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
608
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
609 g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
610
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
611 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
612
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
613 free_font_and_color(priv->expanded);
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
614 priv->expanded = pair;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
615 }
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
616
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
617 void
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
618 pidgin_blist_theme_set_collapsed_background_color(PidginBlistTheme *theme, GdkColor *color)
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
619 {
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
620 PidginBlistThemePrivate *priv;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
621
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
622 g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
623
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
624 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
625
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
626 priv->collapsed_color = color;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
627 }
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
628
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
629 void
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
630 pidgin_blist_theme_set_collapsed_text_info(PidginBlistTheme *theme, FontColorPair *pair)
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
631 {
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
632 PidginBlistThemePrivate *priv;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
633
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
634 g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
635
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
636 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
637
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
638 free_font_and_color(priv->collapsed);
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
639 priv->collapsed = pair;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
640 }
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
641
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
642 void
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
643 pidgin_blist_theme_set_contact_color(PidginBlistTheme *theme, GdkColor *color)
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
644 {
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
645 PidginBlistThemePrivate *priv;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
646
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
647 g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
648
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
649 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
650
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
651 priv->contact_color = color;
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
652 }
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
653
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
654 void
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
655 pidgin_blist_theme_set_contact_text_info(PidginBlistTheme *theme, FontColorPair *pair)
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
656 {
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
657 PidginBlistThemePrivate *priv;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
658
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
659 g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
660
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
661 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
662
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
663 free_font_and_color(priv->contact);
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
664 priv->contact = pair;
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
665 }
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
666
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
667 void
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
668 pidgin_blist_theme_set_online_text_info(PidginBlistTheme *theme, FontColorPair *pair)
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
669 {
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
670 PidginBlistThemePrivate *priv;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
671
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
672 g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
673
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
674 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
675
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
676 free_font_and_color(priv->online);
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
677 priv->online = pair;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
678 }
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
679
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
680 void
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
681 pidgin_blist_theme_set_away_text_info(PidginBlistTheme *theme, FontColorPair *pair)
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
682 {
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
683 PidginBlistThemePrivate *priv;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
684
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
685 g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
686
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
687 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
688
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
689 free_font_and_color(priv->away);
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
690 priv->away = pair;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
691 }
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
692
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
693 void
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
694 pidgin_blist_theme_set_offline_text_info(PidginBlistTheme *theme, FontColorPair *pair)
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
695 {
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
696 PidginBlistThemePrivate *priv;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
697
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
698 g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
699
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
700 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
701
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
702 free_font_and_color(priv->offline);
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
703 priv->offline = pair;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
704 }
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
705
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
706 void
23484
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
707 pidgin_blist_theme_set_idle_text_info(PidginBlistTheme *theme, FontColorPair *pair)
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
708 {
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
709 PidginBlistThemePrivate *priv;
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
710
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
711 g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme));
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
712
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
713 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
714
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
715 free_font_and_color(priv->idle);
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
716 priv->idle = pair;
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
717 }
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
718
06392c8252c0 Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23481
diff changeset
719 void
23479
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
720 pidgin_blist_theme_set_unread_message_text_info(PidginBlistTheme *theme, FontColorPair *pair)
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
721 {
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
722 PidginBlistThemePrivate *priv;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
723
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
724 g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
725
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
726 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
727
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
728 free_font_and_color(priv->message);
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
729 priv->message = pair;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
730 }
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
731
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
732 void
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
733 pidgin_blist_theme_set_status_text_info(PidginBlistTheme *theme, FontColorPair *pair)
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
734 {
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
735 PidginBlistThemePrivate *priv;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
736
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
737 g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
738
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
739 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme));
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
740
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
741 free_font_and_color(priv->status);
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
742 priv->status = pair;
edb03a8d54bd Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents: 23478
diff changeset
743 }