Mercurial > pidgin.yaz
annotate pidgin/gtkblist-theme.c @ 30470:99f81d97cbe6
I'm pretty sure we need to actually use dc->msg_pos for something, instead
of re-sending the same initial bytes.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Wed, 05 May 2010 07:33:55 +0000 |
parents | 1956b27ed87c |
children | 4d92a431d0a1 |
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 |
26656
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
23 #include "internal.h" |
23475
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 *****************************************************************************/ |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
32 |
23475
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
33 typedef struct { |
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
34 /* Buddy list */ |
23702
9525fb966efb
theme loader cleanup, and remove a few warnings
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23484
diff
changeset
|
35 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
|
36 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
|
37 PidginBlistLayout *layout; |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
38 |
23475
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
39 /* 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
|
40 GdkColor *expanded_color; |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
41 PidginThemeFont *expanded; |
23475
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
42 |
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
|
43 GdkColor *collapsed_color; |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
44 PidginThemeFont *collapsed; |
23475
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
45 |
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
46 /* 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
|
47 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
|
48 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
49 PidginThemeFont *contact; |
23475
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
50 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
51 PidginThemeFont *online; |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
52 PidginThemeFont *away; |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
53 PidginThemeFont *offline; |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
54 PidginThemeFont *idle; |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
55 PidginThemeFont *message; |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
56 PidginThemeFont *message_nick_said; |
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
|
57 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
58 PidginThemeFont *status; |
23475
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
59 |
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
|
60 } PidginBlistThemePrivate; |
23475
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
61 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
62 struct _PidginThemeFont |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
63 { |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
64 gchar *font; |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
65 gchar color[10]; |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
66 GdkColor *gdkcolor; |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
67 }; |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
68 |
23475
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
69 /****************************************************************************** |
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
70 * Globals |
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
71 *****************************************************************************/ |
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
72 |
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
73 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
|
74 |
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
75 /****************************************************************************** |
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
76 * Enums |
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
77 *****************************************************************************/ |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
78 |
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
|
79 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
|
80 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
|
81 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
|
82 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
|
83 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
|
84 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
|
85 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
|
86 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
|
87 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
|
88 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
|
89 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
|
90 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
|
91 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
|
92 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
|
93 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
|
94 PROP_MESSAGE, |
25389
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
95 PROP_MESSAGE_NICK_SAID, |
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
|
96 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
|
97 }; |
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
|
98 |
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
|
99 /****************************************************************************** |
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 * 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
|
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 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
103 PidginThemeFont * |
26655
98c40e2a0c7f
Document some functions.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26654
diff
changeset
|
104 pidgin_theme_font_new(const gchar *face, GdkColor *color) |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
105 { |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
106 PidginThemeFont *font = g_new0(PidginThemeFont, 1); |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
107 font->font = g_strdup(face); |
26658
80f2d19e524f
Allow unsetting the color for a PidginThemeFont.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26656
diff
changeset
|
108 if (color) |
80f2d19e524f
Allow unsetting the color for a PidginThemeFont.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26656
diff
changeset
|
109 pidgin_theme_font_set_color(font, color); |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
110 return font; |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
111 } |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
112 |
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
|
113 void |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
114 pidgin_theme_font_free(PidginThemeFont *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
|
115 { |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
116 if (pair != NULL) { |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
117 g_free(pair->font); |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
118 if (pair->gdkcolor) |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
119 gdk_color_free(pair->gdkcolor); |
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
|
120 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
|
121 } |
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
|
122 } |
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 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
124 static PidginThemeFont * |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
125 copy_font_and_color(const PidginThemeFont *pair) |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
126 { |
27288 | 127 PidginThemeFont *copy; |
128 | |
27284
9ad4b5200f24
Better error checking on the theme loaders.
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
26661
diff
changeset
|
129 if (pair == NULL) |
9ad4b5200f24
Better error checking on the theme loaders.
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
26661
diff
changeset
|
130 return NULL; |
9ad4b5200f24
Better error checking on the theme loaders.
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
26661
diff
changeset
|
131 |
27288 | 132 copy = g_new0(PidginThemeFont, 1); |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
133 copy->font = g_strdup(pair->font); |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
134 strncpy(copy->color, pair->color, sizeof(copy->color) - 1); |
26660
e9e253607e35
Fix some assertion failures.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26658
diff
changeset
|
135 if (pair->gdkcolor) |
29362
1956b27ed87c
blist theme: Do not treat missing colors as black.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
28373
diff
changeset
|
136 copy->gdkcolor = pair->gdkcolor ? gdk_color_copy(pair->gdkcolor) : NULL; |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
137 return copy; |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
138 } |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
139 |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
140 void |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
141 pidgin_theme_font_set_font_face(PidginThemeFont *font, const gchar *face) |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
142 { |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
143 g_return_if_fail(font); |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
144 g_return_if_fail(face); |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
145 |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
146 g_free(font->font); |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
147 font->font = g_strdup(face); |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
148 } |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
149 |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
150 void |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
151 pidgin_theme_font_set_color(PidginThemeFont *font, const GdkColor *color) |
26636
548871664d3b
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <paul@darkrain42.org>
parents:
26635
diff
changeset
|
152 { |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
153 g_return_if_fail(font); |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
154 |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
155 if (font->gdkcolor) |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
156 gdk_color_free(font->gdkcolor); |
26658
80f2d19e524f
Allow unsetting the color for a PidginThemeFont.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26656
diff
changeset
|
157 |
80f2d19e524f
Allow unsetting the color for a PidginThemeFont.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26656
diff
changeset
|
158 font->gdkcolor = color ? gdk_color_copy(color) : NULL; |
80f2d19e524f
Allow unsetting the color for a PidginThemeFont.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26656
diff
changeset
|
159 if (color) |
80f2d19e524f
Allow unsetting the color for a PidginThemeFont.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26656
diff
changeset
|
160 g_snprintf(font->color, sizeof(font->color), |
80f2d19e524f
Allow unsetting the color for a PidginThemeFont.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26656
diff
changeset
|
161 "#%02x%02x%02x", color->red >> 8, color->green >> 8, color->blue >> 8); |
80f2d19e524f
Allow unsetting the color for a PidginThemeFont.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26656
diff
changeset
|
162 else |
80f2d19e524f
Allow unsetting the color for a PidginThemeFont.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26656
diff
changeset
|
163 font->color[0] = '\0'; |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
164 } |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
165 |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
166 const gchar * |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
167 pidgin_theme_font_get_font_face(PidginThemeFont *font) |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
168 { |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
169 g_return_val_if_fail(font, NULL); |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
170 return font->font; |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
171 } |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
172 |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
173 const GdkColor * |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
174 pidgin_theme_font_get_color(PidginThemeFont *font) |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
175 { |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
176 g_return_val_if_fail(font, NULL); |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
177 return font->gdkcolor; |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
178 } |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
179 |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
180 const gchar * |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
181 pidgin_theme_font_get_color_describe(PidginThemeFont *font) |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
182 { |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
183 g_return_val_if_fail(font, NULL); |
26658
80f2d19e524f
Allow unsetting the color for a PidginThemeFont.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26656
diff
changeset
|
184 return font->color[0] ? font->color : NULL; |
26636
548871664d3b
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <paul@darkrain42.org>
parents:
26635
diff
changeset
|
185 } |
548871664d3b
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <paul@darkrain42.org>
parents:
26635
diff
changeset
|
186 |
23475
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
187 /****************************************************************************** |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
188 * GObject Stuff |
23475
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
189 *****************************************************************************/ |
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
190 |
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
191 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
|
192 pidgin_blist_theme_init(GTypeInstance *instance, |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
193 gpointer klass) |
23475
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
194 { |
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 (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
|
196 } |
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 |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
198 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
|
199 pidgin_blist_theme_get_property(GObject *obj, guint param_id, GValue *value, |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
200 GParamSpec *psec) |
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
|
201 { |
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
|
202 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
|
203 |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
204 switch (param_id) { |
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
|
205 case PROP_BACKGROUND_COLOR: |
26652
1365dbb97c7d
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26647
diff
changeset
|
206 g_value_set_boxed(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
|
207 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
|
208 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
|
209 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
|
210 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
|
211 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
|
212 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
|
213 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
|
214 case PROP_EXPANDED_COLOR: |
26652
1365dbb97c7d
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26647
diff
changeset
|
215 g_value_set_boxed(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
|
216 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
|
217 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
|
218 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
|
219 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
|
220 case PROP_COLLAPSED_COLOR: |
26652
1365dbb97c7d
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26647
diff
changeset
|
221 g_value_set_boxed(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
|
222 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
|
223 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
|
224 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
|
225 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
|
226 case PROP_CONTACT_COLOR: |
26652
1365dbb97c7d
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26647
diff
changeset
|
227 g_value_set_boxed(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
|
228 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
|
229 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
|
230 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
|
231 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
|
232 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
|
233 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
|
234 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
|
235 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
|
236 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
|
237 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
|
238 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
|
239 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
|
240 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
|
241 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
|
242 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
|
243 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
|
244 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
|
245 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
|
246 break; |
25389
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
247 case PROP_MESSAGE_NICK_SAID: |
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
248 g_value_set_pointer(value, pidgin_blist_theme_get_unread_message_nick_said_text_info(theme)); |
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
249 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
|
250 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
|
251 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
|
252 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
|
253 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
|
254 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
|
255 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
|
256 } |
23475
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
257 } |
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
258 |
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
|
259 static void |
23702
9525fb966efb
theme loader cleanup, and remove a few warnings
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23484
diff
changeset
|
260 pidgin_blist_theme_set_property(GObject *obj, guint param_id, const GValue *value, |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
261 GParamSpec *psec) |
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
|
262 { |
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
|
263 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
|
264 |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
265 switch (param_id) { |
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
|
266 case PROP_BACKGROUND_COLOR: |
26652
1365dbb97c7d
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26647
diff
changeset
|
267 pidgin_blist_theme_set_background_color(theme, g_value_get_boxed(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
|
268 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
|
269 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
|
270 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
|
271 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
|
272 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
|
273 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
|
274 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
|
275 case PROP_EXPANDED_COLOR: |
26652
1365dbb97c7d
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26647
diff
changeset
|
276 pidgin_blist_theme_set_expanded_background_color(theme, g_value_get_boxed(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
|
277 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
|
278 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
|
279 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
|
280 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
|
281 case PROP_COLLAPSED_COLOR: |
26652
1365dbb97c7d
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26647
diff
changeset
|
282 pidgin_blist_theme_set_collapsed_background_color(theme, g_value_get_boxed(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
|
283 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
|
284 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
|
285 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
|
286 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
|
287 case PROP_CONTACT_COLOR: |
26652
1365dbb97c7d
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26647
diff
changeset
|
288 pidgin_blist_theme_set_contact_color(theme, g_value_get_boxed(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
|
289 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
|
290 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
|
291 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
|
292 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
|
293 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
|
294 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
|
295 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
|
296 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
|
297 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
|
298 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
|
299 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
|
300 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
|
301 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
|
302 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
|
303 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
|
304 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
|
305 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
|
306 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
|
307 break; |
25389
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
308 case PROP_MESSAGE_NICK_SAID: |
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
309 pidgin_blist_theme_set_unread_message_nick_said_text_info(theme, g_value_get_pointer(value)); |
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
310 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
|
311 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
|
312 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
|
313 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
|
314 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
|
315 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
|
316 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
|
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 } |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
319 |
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
320 static void |
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
321 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
|
322 { |
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
|
323 PidginBlistThemePrivate *priv; |
23475
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
324 |
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
|
325 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
|
326 |
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
|
327 /* Buddy List */ |
26656
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
328 if (priv->bgcolor) |
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
329 gdk_color_free(priv->bgcolor); |
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
|
330 g_free(priv->layout); |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
331 |
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
|
332 /* Group */ |
26656
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
333 if (priv->expanded_color) |
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
334 gdk_color_free(priv->expanded_color); |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
335 pidgin_theme_font_free(priv->expanded); |
26656
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
336 if (priv->collapsed_color) |
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
337 gdk_color_free(priv->collapsed_color); |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
338 pidgin_theme_font_free(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
|
339 |
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 /* Buddy */ |
26656
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
341 if (priv->contact_color) |
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
342 gdk_color_free(priv->contact_color); |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
343 pidgin_theme_font_free(priv->contact); |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
344 pidgin_theme_font_free(priv->online); |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
345 pidgin_theme_font_free(priv->away); |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
346 pidgin_theme_font_free(priv->offline); |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
347 pidgin_theme_font_free(priv->idle); |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
348 pidgin_theme_font_free(priv->message); |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
349 pidgin_theme_font_free(priv->message_nick_said); |
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
350 pidgin_theme_font_free(priv->status); |
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
|
351 |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
352 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
|
353 |
23475
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
354 parent_class->finalize (obj); |
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
355 } |
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
356 |
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
357 static void |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
358 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
|
359 { |
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
360 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
|
361 GParamSpec *pspec; |
23475
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
362 |
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
363 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
|
364 |
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
|
365 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
|
366 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
|
367 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
|
368 |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
369 /* Buddy List */ |
26656
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
370 pspec = g_param_spec_boxed("background-color", _("Background Color"), |
26661
9b6619a28f5d
Mark the description of the properties for translation. Show the
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26660
diff
changeset
|
371 _("The background color for the buddy list"), |
26652
1365dbb97c7d
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26647
diff
changeset
|
372 GDK_TYPE_COLOR, G_PARAM_READWRITE); |
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
|
373 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
|
374 |
26656
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
375 pspec = g_param_spec_pointer("layout", _("Layout"), |
28335
348967766bbc
Use "buddy list" instead of "blist" in user-visible strings
Mark Doliner <mark@kingant.net>
parents:
27288
diff
changeset
|
376 _("The layout of icons, name, and status of the buddy list"), |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
377 G_PARAM_READWRITE); |
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
|
378 |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
379 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
|
380 |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
381 /* Group */ |
28373
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
382 /* Note to translators: These two strings refer to the background color |
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
383 of a buddy list group when in its expanded state */ |
26656
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
384 pspec = g_param_spec_boxed("expanded-color", _("Expanded Background Color"), |
26661
9b6619a28f5d
Mark the description of the properties for translation. Show the
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26660
diff
changeset
|
385 _("The background color of an expanded group"), |
26652
1365dbb97c7d
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26647
diff
changeset
|
386 GDK_TYPE_COLOR, G_PARAM_READWRITE); |
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
|
387 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
|
388 |
28373
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
389 /* Note to translators: These two strings refer to the font and color |
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
390 of a buddy list group when in its expanded state */ |
26656
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
391 pspec = g_param_spec_pointer("expanded-text", _("Expanded Text"), |
26661
9b6619a28f5d
Mark the description of the properties for translation. Show the
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26660
diff
changeset
|
392 _("The text information for when a group is expanded"), |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
393 G_PARAM_READWRITE); |
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 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
|
395 |
28373
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
396 /* Note to translators: These two strings refer to the background color |
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
397 of a buddy list group when in its collapsed state */ |
26656
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
398 pspec = g_param_spec_boxed("collapsed-color", _("Collapsed Background Color"), |
26661
9b6619a28f5d
Mark the description of the properties for translation. Show the
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26660
diff
changeset
|
399 _("The background color of a collapsed group"), |
26652
1365dbb97c7d
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26647
diff
changeset
|
400 GDK_TYPE_COLOR, G_PARAM_READWRITE); |
23481
fc3600ba68f1
fixed group coloring
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23479
diff
changeset
|
401 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
|
402 |
28373
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
403 /* Note to translators: These two strings refer to the font and color |
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
404 of a buddy list group when in its collapsed state */ |
26656
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
405 pspec = g_param_spec_pointer("collapsed-text", _("Collapsed Text"), |
26661
9b6619a28f5d
Mark the description of the properties for translation. Show the
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26660
diff
changeset
|
406 _("The text information for when a group is collapsed"), |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
407 G_PARAM_READWRITE); |
23481
fc3600ba68f1
fixed group coloring
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23479
diff
changeset
|
408 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
|
409 |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
410 /* Buddy */ |
28373
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
411 /* Note to translators: These two strings refer to the background color |
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
412 of a buddy list contact or chat room */ |
26656
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
413 pspec = g_param_spec_boxed("contact-color", _("Contact/Chat Background Color"), |
26661
9b6619a28f5d
Mark the description of the properties for translation. Show the
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26660
diff
changeset
|
414 _("The background color of a contact or chat"), |
26652
1365dbb97c7d
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26647
diff
changeset
|
415 GDK_TYPE_COLOR, 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
|
416 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
|
417 |
28373
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
418 /* Note to translators: These two strings refer to the font and color |
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
419 of a buddy list contact when in its expanded state */ |
26656
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
420 pspec = g_param_spec_pointer("contact", _("Contact Text"), |
26661
9b6619a28f5d
Mark the description of the properties for translation. Show the
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26660
diff
changeset
|
421 _("The text information for when a contact is expanded"), |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
422 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
|
423 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
|
424 |
28373
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
425 /* Note to translators: These two strings refer to the font and color |
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
426 of a buddy list buddy when it is online */ |
28372
12cef8d4feb1
A few small string changes
Mark Doliner <mark@kingant.net>
parents:
28335
diff
changeset
|
427 pspec = g_param_spec_pointer("online", _("Online Text"), |
26661
9b6619a28f5d
Mark the description of the properties for translation. Show the
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26660
diff
changeset
|
428 _("The text information for when a buddy is online"), |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
429 G_PARAM_READWRITE); |
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 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
|
431 |
28373
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
432 /* Note to translators: These two strings refer to the font and color |
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
433 of a buddy list buddy when it is away */ |
26656
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
434 pspec = g_param_spec_pointer("away", _("Away Text"), |
26661
9b6619a28f5d
Mark the description of the properties for translation. Show the
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26660
diff
changeset
|
435 _("The text information for when a buddy is away"), |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
436 G_PARAM_READWRITE); |
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
|
437 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
|
438 |
28373
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
439 /* Note to translators: These two strings refer to the font and color |
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
440 of a buddy list buddy when it is offline */ |
28372
12cef8d4feb1
A few small string changes
Mark Doliner <mark@kingant.net>
parents:
28335
diff
changeset
|
441 pspec = g_param_spec_pointer("offline", _("Offline Text"), |
12cef8d4feb1
A few small string changes
Mark Doliner <mark@kingant.net>
parents:
28335
diff
changeset
|
442 _("The text information for when a buddy is offline"), |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
443 G_PARAM_READWRITE); |
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 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
|
445 |
28373
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
446 /* Note to translators: These two strings refer to the font and color |
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
447 of a buddy list buddy when it is idle */ |
26656
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
448 pspec = g_param_spec_pointer("idle", _("Idle Text"), |
26661
9b6619a28f5d
Mark the description of the properties for translation. Show the
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26660
diff
changeset
|
449 _("The text information for when a buddy is idle"), |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
450 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
|
451 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
|
452 |
28373
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
453 /* Note to translators: These two strings refer to the font and color |
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
454 of a buddy list buddy when they have sent you a new message */ |
26656
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
455 pspec = g_param_spec_pointer("message", _("Message Text"), |
26661
9b6619a28f5d
Mark the description of the properties for translation. Show the
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26660
diff
changeset
|
456 _("The text information for when a buddy has an unread message"), |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
457 G_PARAM_READWRITE); |
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
|
458 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
|
459 |
28373
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
460 /* Note to translators: These two strings refer to the font and color |
8d408dff1bff
Add a bunch of comments for translators that might make some of these
Mark Doliner <mark@kingant.net>
parents:
28372
diff
changeset
|
461 of a buddy list buddy when they have sent you a new message */ |
26656
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
462 pspec = g_param_spec_pointer("message_nick_said", _("Message (Nick Said) Text"), |
28372
12cef8d4feb1
A few small string changes
Mark Doliner <mark@kingant.net>
parents:
28335
diff
changeset
|
463 _("The text information for when a chat has an unread message that mentions your nickname"), |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
464 G_PARAM_READWRITE); |
25389
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
465 g_object_class_install_property(obj_class, PROP_MESSAGE_NICK_SAID, pspec); |
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
466 |
26656
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
467 pspec = g_param_spec_pointer("status", _("Status Text"), |
26661
9b6619a28f5d
Mark the description of the properties for translation. Show the
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26660
diff
changeset
|
468 _("The text information for a buddy's status"), |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
469 G_PARAM_READWRITE); |
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
|
470 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
|
471 } |
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
472 |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
473 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
|
474 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
|
475 { |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
476 static GType type = 0; |
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
477 if (type == 0) { |
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
478 static GTypeInfo info = { |
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
479 sizeof(PidginBlistThemeClass), |
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
480 NULL, /* base_init */ |
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
481 NULL, /* base_finalize */ |
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
482 (GClassInitFunc)pidgin_blist_theme_class_init, /* class_init */ |
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
483 NULL, /* class_finalize */ |
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
484 NULL, /* class_data */ |
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
485 sizeof(PidginBlistTheme), |
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
486 0, /* n_preallocs */ |
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
487 pidgin_blist_theme_init, /* instance_init */ |
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
488 NULL, /* value table */ |
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
489 }; |
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
490 type = g_type_register_static (PURPLE_TYPE_THEME, |
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
491 "PidginBlistTheme", &info, 0); |
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
492 } |
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
493 return type; |
23475
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
494 } |
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
495 |
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
496 |
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
497 /***************************************************************************** |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
498 * Public API functions |
23475
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
499 *****************************************************************************/ |
1242a922a4bc
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
500 |
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
|
501 /* get methods */ |
25402
0c7b74fc558e
Lots of minor whitespace and comment changes:
Mark Doliner <mark@kingant.net>
parents:
25389
diff
changeset
|
502 |
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
|
503 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
|
504 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
|
505 { |
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 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
|
507 |
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
|
508 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
|
509 |
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
|
510 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
|
511 |
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
|
512 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
|
513 } |
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
|
514 |
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
|
515 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
|
516 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
|
517 { |
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
|
518 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
|
519 |
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
|
520 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
|
521 |
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
|
522 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
|
523 |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
524 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
|
525 } |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
526 |
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
|
527 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
|
528 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
|
529 { |
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
|
530 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
|
531 |
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
|
532 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
|
533 |
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
|
534 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
|
535 |
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 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
|
537 } |
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 |
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
|
539 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
|
540 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
|
541 { |
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
|
542 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
|
543 |
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
|
544 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
|
545 |
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
|
546 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
|
547 |
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 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
|
549 } |
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 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
551 PidginThemeFont * |
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
|
552 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
|
553 { |
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
|
554 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
|
555 |
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
|
556 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
|
557 |
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
|
558 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
|
559 |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
560 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
|
561 } |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
562 |
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
|
563 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
|
564 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
|
565 { |
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
|
566 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
|
567 |
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
|
568 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
|
569 |
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
|
570 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
|
571 |
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
|
572 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
|
573 } |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
574 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
575 PidginThemeFont * |
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
|
576 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
|
577 { |
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
|
578 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
|
579 |
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
|
580 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
|
581 |
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
|
582 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
|
583 |
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
|
584 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
|
585 } |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
586 |
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
|
587 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
|
588 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
|
589 { |
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
|
590 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
|
591 |
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
|
592 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
|
593 |
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
|
594 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
|
595 |
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
|
596 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
|
597 } |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
598 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
599 PidginThemeFont * |
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
|
600 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
|
601 { |
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
|
602 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
|
603 |
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
|
604 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
|
605 |
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
|
606 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
|
607 |
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
|
608 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
|
609 } |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
610 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
611 PidginThemeFont * |
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
|
612 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
|
613 { |
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
|
614 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
|
615 |
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
|
616 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
|
617 |
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
|
618 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
|
619 |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
620 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
|
621 } |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
622 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
623 PidginThemeFont * |
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
|
624 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
|
625 { |
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
|
626 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
|
627 |
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
|
628 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
|
629 |
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
|
630 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
|
631 |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
632 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
|
633 } |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
634 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
635 PidginThemeFont * |
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
|
636 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
|
637 { |
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
|
638 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
|
639 |
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
|
640 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
|
641 |
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
|
642 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
|
643 |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
644 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
|
645 } |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
646 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
647 PidginThemeFont * |
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
|
648 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
|
649 { |
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
|
650 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
|
651 |
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
|
652 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
|
653 |
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
|
654 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
|
655 |
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
|
656 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
|
657 } |
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
|
658 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
659 PidginThemeFont * |
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
|
660 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
|
661 { |
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
|
662 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
|
663 |
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
|
664 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
|
665 |
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
|
666 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
|
667 |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
668 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
|
669 } |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
670 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
671 PidginThemeFont * |
25389
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
672 pidgin_blist_theme_get_unread_message_nick_said_text_info(PidginBlistTheme *theme) |
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
673 { |
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
674 PidginBlistThemePrivate *priv; |
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
675 |
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
676 g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL); |
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
677 |
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
678 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
679 |
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
680 return priv->message_nick_said; |
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
681 } |
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
682 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
683 PidginThemeFont * |
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
|
684 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
|
685 { |
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
|
686 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
|
687 |
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
|
688 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
|
689 |
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
|
690 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
|
691 |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
692 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
|
693 } |
8941e76e0762
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23475
diff
changeset
|
694 |
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
|
695 /* 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
|
696 void |
26636
548871664d3b
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <paul@darkrain42.org>
parents:
26635
diff
changeset
|
697 pidgin_blist_theme_set_background_color(PidginBlistTheme *theme, const 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
|
698 { |
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 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
|
700 |
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 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
|
702 |
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 = 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
|
704 |
26656
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
705 if (priv->bgcolor) |
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
706 gdk_color_free(priv->bgcolor); |
29362
1956b27ed87c
blist theme: Do not treat missing colors as black.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
28373
diff
changeset
|
707 priv->bgcolor = color ? gdk_color_copy(color) : NULL; |
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
|
708 } |
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
|
709 |
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
|
710 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
|
711 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
|
712 { |
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
|
713 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
|
714 |
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
|
715 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
|
716 |
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
|
717 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
|
718 |
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
|
719 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
|
720 } |
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 void |
26636
548871664d3b
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <paul@darkrain42.org>
parents:
26635
diff
changeset
|
723 pidgin_blist_theme_set_layout(PidginBlistTheme *theme, const PidginBlistLayout *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
|
724 { |
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 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
|
726 |
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 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
|
728 |
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 = 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
|
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 g_free(priv->layout); |
26636
548871664d3b
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <paul@darkrain42.org>
parents:
26635
diff
changeset
|
732 priv->layout = g_memdup(layout, sizeof(PidginBlistLayout)); |
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
|
733 } |
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 void |
26636
548871664d3b
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <paul@darkrain42.org>
parents:
26635
diff
changeset
|
736 pidgin_blist_theme_set_expanded_background_color(PidginBlistTheme *theme, const 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
|
737 { |
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 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
|
739 |
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 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
|
741 |
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 = 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
|
743 |
26656
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
744 if (priv->expanded_color) |
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
745 gdk_color_free(priv->expanded_color); |
29362
1956b27ed87c
blist theme: Do not treat missing colors as black.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
28373
diff
changeset
|
746 priv->expanded_color = color ? gdk_color_copy(color) : NULL; |
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
|
747 } |
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
|
748 |
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
|
749 void |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
750 pidgin_blist_theme_set_expanded_text_info(PidginBlistTheme *theme, const PidginThemeFont *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
|
751 { |
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
|
752 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
|
753 |
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
|
754 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
|
755 |
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
|
756 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
|
757 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
758 pidgin_theme_font_free(priv->expanded); |
26636
548871664d3b
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <paul@darkrain42.org>
parents:
26635
diff
changeset
|
759 priv->expanded = copy_font_and_color(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
|
760 } |
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
|
761 |
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
|
762 void |
26636
548871664d3b
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <paul@darkrain42.org>
parents:
26635
diff
changeset
|
763 pidgin_blist_theme_set_collapsed_background_color(PidginBlistTheme *theme, const 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
|
764 { |
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
|
765 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
|
766 |
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
|
767 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
|
768 |
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
|
769 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
|
770 |
26656
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
771 if (priv->collapsed_color) |
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
772 gdk_color_free(priv->collapsed_color); |
29362
1956b27ed87c
blist theme: Do not treat missing colors as black.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
28373
diff
changeset
|
773 priv->collapsed_color = color ? gdk_color_copy(color) : NULL; |
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
|
774 } |
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
|
775 |
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
|
776 void |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
777 pidgin_blist_theme_set_collapsed_text_info(PidginBlistTheme *theme, const PidginThemeFont *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
|
778 { |
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
|
779 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
|
780 |
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
|
781 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
|
782 |
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
|
783 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
|
784 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
785 pidgin_theme_font_free(priv->collapsed); |
26636
548871664d3b
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <paul@darkrain42.org>
parents:
26635
diff
changeset
|
786 priv->collapsed = copy_font_and_color(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
|
787 } |
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
|
788 |
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
|
789 void |
26636
548871664d3b
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <paul@darkrain42.org>
parents:
26635
diff
changeset
|
790 pidgin_blist_theme_set_contact_color(PidginBlistTheme *theme, const 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
|
791 { |
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
|
792 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
|
793 |
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
|
794 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
|
795 |
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
|
796 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
|
797 |
26656
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
798 if (priv->contact_color) |
7591d7ed911c
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26655
diff
changeset
|
799 gdk_color_free(priv->contact_color); |
29362
1956b27ed87c
blist theme: Do not treat missing colors as black.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
28373
diff
changeset
|
800 priv->contact_color = color ? gdk_color_copy(color) : NULL; |
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
|
801 } |
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
|
802 |
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
|
803 void |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
804 pidgin_blist_theme_set_contact_text_info(PidginBlistTheme *theme, const PidginThemeFont *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
|
805 { |
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
|
806 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
|
807 |
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
|
808 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
|
809 |
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
|
810 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
|
811 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
812 pidgin_theme_font_free(priv->contact); |
26636
548871664d3b
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <paul@darkrain42.org>
parents:
26635
diff
changeset
|
813 priv->contact = copy_font_and_color(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
|
814 } |
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
|
815 |
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
|
816 void |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
817 pidgin_blist_theme_set_online_text_info(PidginBlistTheme *theme, const PidginThemeFont *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
|
818 { |
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
|
819 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
|
820 |
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
|
821 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
|
822 |
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
|
823 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
|
824 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
825 pidgin_theme_font_free(priv->online); |
26636
548871664d3b
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <paul@darkrain42.org>
parents:
26635
diff
changeset
|
826 priv->online = copy_font_and_color(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
|
827 } |
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
|
828 |
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
|
829 void |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
830 pidgin_blist_theme_set_away_text_info(PidginBlistTheme *theme, const PidginThemeFont *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
|
831 { |
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
|
832 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
|
833 |
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
|
834 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
|
835 |
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
|
836 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
|
837 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
838 pidgin_theme_font_free(priv->away); |
26636
548871664d3b
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <paul@darkrain42.org>
parents:
26635
diff
changeset
|
839 priv->away = copy_font_and_color(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
|
840 } |
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
|
841 |
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
|
842 void |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
843 pidgin_blist_theme_set_offline_text_info(PidginBlistTheme *theme, const PidginThemeFont *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
|
844 { |
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
|
845 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
|
846 |
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
|
847 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
|
848 |
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
|
849 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
|
850 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
851 pidgin_theme_font_free(priv->offline); |
26636
548871664d3b
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <paul@darkrain42.org>
parents:
26635
diff
changeset
|
852 priv->offline = copy_font_and_color(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
|
853 } |
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
|
854 |
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
|
855 void |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
856 pidgin_blist_theme_set_idle_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair) |
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
|
857 { |
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
|
858 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
|
859 |
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
|
860 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
|
861 |
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
|
862 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
|
863 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
864 pidgin_theme_font_free(priv->idle); |
26636
548871664d3b
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <paul@darkrain42.org>
parents:
26635
diff
changeset
|
865 priv->idle = copy_font_and_color(pair); |
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
|
866 } |
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
|
867 |
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
|
868 void |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
869 pidgin_blist_theme_set_unread_message_text_info(PidginBlistTheme *theme, const PidginThemeFont *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
|
870 { |
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
|
871 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
|
872 |
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
|
873 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
|
874 |
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
|
875 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
|
876 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
877 pidgin_theme_font_free(priv->message); |
26636
548871664d3b
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <paul@darkrain42.org>
parents:
26635
diff
changeset
|
878 priv->message = copy_font_and_color(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
|
879 } |
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
|
880 |
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
|
881 void |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
882 pidgin_blist_theme_set_unread_message_nick_said_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair) |
25389
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
883 { |
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
884 PidginBlistThemePrivate *priv; |
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
885 |
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
886 g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme)); |
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
887 |
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
888 priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
889 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
890 pidgin_theme_font_free(priv->message_nick_said); |
26636
548871664d3b
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <paul@darkrain42.org>
parents:
26635
diff
changeset
|
891 priv->message_nick_said = copy_font_and_color(pair); |
25389
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
892 } |
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
893 |
dc2584ebaa1a
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <paul@darkrain42.org>
parents:
23702
diff
changeset
|
894 void |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
895 pidgin_blist_theme_set_status_text_info(PidginBlistTheme *theme, const PidginThemeFont *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
|
896 { |
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
|
897 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
|
898 |
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
|
899 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
|
900 |
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
|
901 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
|
902 |
26654
f099e7f2739c
Several changes:
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
26652
diff
changeset
|
903 pidgin_theme_font_free(priv->status); |
26636
548871664d3b
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <paul@darkrain42.org>
parents:
26635
diff
changeset
|
904 priv->status = copy_font_and_color(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
|
905 } |