Fri, 17 Apr 2009 19:28:20 +0000
Several changes:
* Use "color" for text-color consistently in the buddylist themes,
instead of using "text_color" in some places and "color" in others.
* Rename FontColorPair to PidginThemeFont. (I suspect we might use
this later for conversation themes as well?)
* Hide PidginThemeFont structure, add accessor/mutator functions.
* Remove some ridiculous code duplications.
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
1 | /* |
|
d4acd51c1446
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 |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
3 | * |
|
d4acd51c1446
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 |
|
d4acd51c1446
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 |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
6 | * source distribution. |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
7 | * |
|
d4acd51c1446
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 |
|
d4acd51c1446
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 |
|
d4acd51c1446
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 |
|
d4acd51c1446
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. |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
12 | * |
|
d4acd51c1446
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, |
|
d4acd51c1446
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 |
|
d4acd51c1446
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 |
|
d4acd51c1446
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. |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
17 | * |
|
d4acd51c1446
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 |
|
d4acd51c1446
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 |
|
d4acd51c1446
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 |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
21 | */ |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
22 | |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
23 | #include "gtkblist-theme.h" |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
24 | #include <string.h> |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
25 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
26 | #define PIDGIN_BLIST_THEME_GET_PRIVATE(Gobject) \ |
|
8251d0f67df5
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:
23657
diff
changeset
|
27 | ((PidginBlistThemePrivate *) ((PIDGIN_BLIST_THEME(Gobject))->priv)) |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
28 | |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
29 | /****************************************************************************** |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
30 | * Structs |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
31 | *****************************************************************************/ |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
32 | |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
33 | typedef struct { |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
34 | /* Buddy list */ |
|
23972
90e0da03c053
theme loader cleanup, and remove a few warnings
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23665
diff
changeset
|
35 | gdouble opacity; |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
36 | GdkColor *bgcolor; |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
37 | PidginBlistLayout *layout; |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
38 | |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
39 | /* groups */ |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
40 | GdkColor *expanded_color; |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
41 | PidginThemeFont *expanded; |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
42 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
43 | GdkColor *collapsed_color; |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
44 | PidginThemeFont *collapsed; |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
45 | |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
46 | /* buddy */ |
|
23665
c9944e9b97e1
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:
23662
diff
changeset
|
47 | GdkColor *contact_color; |
|
c9944e9b97e1
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:
23662
diff
changeset
|
48 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
49 | PidginThemeFont *contact; |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
50 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
51 | PidginThemeFont *online; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
52 | PidginThemeFont *away; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
53 | PidginThemeFont *offline; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
54 | PidginThemeFont *idle; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
55 | PidginThemeFont *message; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
56 | PidginThemeFont *message_nick_said; |
|
23665
c9944e9b97e1
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:
23662
diff
changeset
|
57 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
58 | PidginThemeFont *status; |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
59 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
60 | } PidginBlistThemePrivate; |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
61 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
62 | struct _PidginThemeFont |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
63 | { |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
64 | gchar *font; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
65 | gchar color[10]; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
66 | GdkColor *gdkcolor; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
67 | }; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
68 | |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
69 | /****************************************************************************** |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
70 | * Globals |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
71 | *****************************************************************************/ |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
72 | |
|
d4acd51c1446
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; |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
74 | |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
75 | /****************************************************************************** |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
76 | * Enums |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
77 | *****************************************************************************/ |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
78 | |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
79 | enum { |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
80 | PROP_ZERO = 0, |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
81 | PROP_BACKGROUND_COLOR, |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
82 | PROP_OPACITY, |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
83 | PROP_LAYOUT, |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
84 | PROP_EXPANDED_COLOR, |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
85 | PROP_EXPANDED_TEXT, |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
86 | PROP_COLLAPSED_COLOR, |
|
8251d0f67df5
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:
23657
diff
changeset
|
87 | PROP_COLLAPSED_TEXT, |
|
23665
c9944e9b97e1
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:
23662
diff
changeset
|
88 | PROP_CONTACT_COLOR, |
|
c9944e9b97e1
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:
23662
diff
changeset
|
89 | PROP_CONTACT, |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
90 | PROP_ONLINE, |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
91 | PROP_AWAY, |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
92 | PROP_OFFLINE, |
|
23665
c9944e9b97e1
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:
23662
diff
changeset
|
93 | PROP_IDLE, |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
94 | PROP_MESSAGE, |
|
25863
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
95 | PROP_MESSAGE_NICK_SAID, |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
96 | PROP_STATUS, |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
97 | }; |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
98 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
99 | /****************************************************************************** |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
100 | * Helpers |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
101 | *****************************************************************************/ |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
102 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
103 | PidginThemeFont * |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
104 | pidgin_theme_font_new(const char *face, GdkColor *color) |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
105 | { |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
106 | PidginThemeFont *font = g_new0(PidginThemeFont, 1); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
107 | font->font = g_strdup(face); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
108 | pidgin_theme_font_set_color(font, color); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
109 | return font; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
110 | } |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
111 | |
|
23665
c9944e9b97e1
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:
23662
diff
changeset
|
112 | void |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
113 | pidgin_theme_font_free(PidginThemeFont *pair) |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
114 | { |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
115 | if (pair != NULL) { |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
116 | g_free(pair->font); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
117 | if (pair->gdkcolor) |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
118 | gdk_color_free(pair->gdkcolor); |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
119 | g_free(pair); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
120 | } |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
121 | } |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
122 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
123 | static PidginThemeFont * |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
124 | copy_font_and_color(const PidginThemeFont *pair) |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
125 | { |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
126 | PidginThemeFont *copy = g_new0(PidginThemeFont, 1); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
127 | copy->font = g_strdup(pair->font); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
128 | strncpy(copy->color, pair->color, sizeof(copy->color) - 1); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
129 | copy->gdkcolor = gdk_color_copy(pair->gdkcolor); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
130 | return copy; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
131 | } |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
132 | |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
133 | void |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
134 | pidgin_theme_font_set_font_face(PidginThemeFont *font, const gchar *face) |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
135 | { |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
136 | g_return_if_fail(font); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
137 | g_return_if_fail(face); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
138 | |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
139 | g_free(font->font); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
140 | font->font = g_strdup(face); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
141 | } |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
142 | |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
143 | void |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
144 | pidgin_theme_font_set_color(PidginThemeFont *font, const GdkColor *color) |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
145 | { |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
146 | g_return_if_fail(font); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
147 | g_return_if_fail(color); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
148 | |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
149 | if (font->gdkcolor) |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
150 | gdk_color_free(font->gdkcolor); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
151 | font->gdkcolor = gdk_color_copy(color); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
152 | g_snprintf(font->color, sizeof(font->color), |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
153 | "#%02x%02x%02x", color->red >> 8, color->green >> 8, color->blue >> 8); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
154 | } |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
155 | |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
156 | const gchar * |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
157 | pidgin_theme_font_get_font_face(PidginThemeFont *font) |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
158 | { |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
159 | g_return_val_if_fail(font, NULL); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
160 | return font->font; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
161 | } |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
162 | |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
163 | const GdkColor * |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
164 | pidgin_theme_font_get_color(PidginThemeFont *font) |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
165 | { |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
166 | g_return_val_if_fail(font, NULL); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
167 | return font->gdkcolor; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
168 | } |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
169 | |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
170 | const gchar * |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
171 | pidgin_theme_font_get_color_describe(PidginThemeFont *font) |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
172 | { |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
173 | g_return_val_if_fail(font, NULL); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
174 | return font->color; |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
175 | } |
|
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
176 | |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
177 | /****************************************************************************** |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
178 | * GObject Stuff |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
179 | *****************************************************************************/ |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
180 | |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
181 | static void |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
182 | pidgin_blist_theme_init(GTypeInstance *instance, |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
183 | gpointer klass) |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
184 | { |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
185 | (PIDGIN_BLIST_THEME(instance))->priv = g_new0(PidginBlistThemePrivate, 1); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
186 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
187 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
188 | static void |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
189 | pidgin_blist_theme_get_property(GObject *obj, guint param_id, GValue *value, |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
190 | GParamSpec *psec) |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
191 | { |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
192 | PidginBlistTheme *theme = PIDGIN_BLIST_THEME(obj); |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
193 | |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
194 | switch (param_id) { |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
195 | case PROP_BACKGROUND_COLOR: |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
196 | g_value_set_boxed(value, pidgin_blist_theme_get_background_color(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
197 | break; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
198 | case PROP_OPACITY: |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
199 | g_value_set_double(value, pidgin_blist_theme_get_opacity(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
200 | break; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
201 | case PROP_LAYOUT: |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
202 | g_value_set_pointer(value, pidgin_blist_theme_get_layout(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
203 | break; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
204 | case PROP_EXPANDED_COLOR: |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
205 | g_value_set_boxed(value, pidgin_blist_theme_get_expanded_background_color(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
206 | break; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
207 | case PROP_EXPANDED_TEXT: |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
208 | g_value_set_pointer(value, pidgin_blist_theme_get_expanded_text_info(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
209 | break; |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
210 | case PROP_COLLAPSED_COLOR: |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
211 | g_value_set_boxed(value, pidgin_blist_theme_get_collapsed_background_color(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
212 | break; |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
213 | case PROP_COLLAPSED_TEXT: |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
214 | g_value_set_pointer(value, pidgin_blist_theme_get_collapsed_text_info(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
215 | break; |
|
23665
c9944e9b97e1
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:
23662
diff
changeset
|
216 | case PROP_CONTACT_COLOR: |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
217 | g_value_set_boxed(value, pidgin_blist_theme_get_contact_color(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
218 | break; |
|
23665
c9944e9b97e1
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:
23662
diff
changeset
|
219 | case PROP_CONTACT: |
|
c9944e9b97e1
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:
23662
diff
changeset
|
220 | g_value_set_pointer(value, pidgin_blist_theme_get_contact_text_info(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
221 | break; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
222 | case PROP_ONLINE: |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
223 | g_value_set_pointer(value, pidgin_blist_theme_get_online_text_info(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
224 | break; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
225 | case PROP_AWAY: |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
226 | g_value_set_pointer(value, pidgin_blist_theme_get_away_text_info(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
227 | break; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
228 | case PROP_OFFLINE: |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
229 | g_value_set_pointer(value, pidgin_blist_theme_get_offline_text_info(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
230 | break; |
|
23665
c9944e9b97e1
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:
23662
diff
changeset
|
231 | case PROP_IDLE: |
|
c9944e9b97e1
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:
23662
diff
changeset
|
232 | g_value_set_pointer(value, pidgin_blist_theme_get_idle_text_info(theme)); |
|
c9944e9b97e1
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:
23662
diff
changeset
|
233 | break; |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
234 | case PROP_MESSAGE: |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
235 | g_value_set_pointer(value, pidgin_blist_theme_get_unread_message_text_info(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
236 | break; |
|
25863
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
237 | case PROP_MESSAGE_NICK_SAID: |
|
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
238 | g_value_set_pointer(value, pidgin_blist_theme_get_unread_message_nick_said_text_info(theme)); |
|
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
239 | break; |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
240 | case PROP_STATUS: |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
241 | g_value_set_pointer(value, pidgin_blist_theme_get_status_text_info(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
242 | break; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
243 | default: |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
244 | G_OBJECT_WARN_INVALID_PROPERTY_ID(obj, param_id, psec); |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
245 | break; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
246 | } |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
247 | } |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
248 | |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
249 | static void |
|
23972
90e0da03c053
theme loader cleanup, and remove a few warnings
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23665
diff
changeset
|
250 | pidgin_blist_theme_set_property(GObject *obj, guint param_id, const GValue *value, |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
251 | GParamSpec *psec) |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
252 | { |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
253 | PidginBlistTheme *theme = PIDGIN_BLIST_THEME(obj); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
254 | |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
255 | switch (param_id) { |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
256 | case PROP_BACKGROUND_COLOR: |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
257 | pidgin_blist_theme_set_background_color(theme, g_value_get_boxed(value)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
258 | break; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
259 | case PROP_OPACITY: |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
260 | pidgin_blist_theme_set_opacity(theme, g_value_get_double(value)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
261 | break; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
262 | case PROP_LAYOUT: |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
263 | pidgin_blist_theme_set_layout(theme, g_value_get_pointer(value)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
264 | break; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
265 | case PROP_EXPANDED_COLOR: |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
266 | pidgin_blist_theme_set_expanded_background_color(theme, g_value_get_boxed(value)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
267 | break; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
268 | case PROP_EXPANDED_TEXT: |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
269 | pidgin_blist_theme_set_expanded_text_info(theme, g_value_get_pointer(value)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
270 | break; |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
271 | case PROP_COLLAPSED_COLOR: |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
272 | pidgin_blist_theme_set_collapsed_background_color(theme, g_value_get_boxed(value)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
273 | break; |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
274 | case PROP_COLLAPSED_TEXT: |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
275 | pidgin_blist_theme_set_collapsed_text_info(theme, g_value_get_pointer(value)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
276 | break; |
|
23665
c9944e9b97e1
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:
23662
diff
changeset
|
277 | case PROP_CONTACT_COLOR: |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
278 | pidgin_blist_theme_set_contact_color(theme, g_value_get_boxed(value)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
279 | break; |
|
23665
c9944e9b97e1
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:
23662
diff
changeset
|
280 | case PROP_CONTACT: |
|
c9944e9b97e1
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:
23662
diff
changeset
|
281 | pidgin_blist_theme_set_contact_text_info(theme, g_value_get_pointer(value)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
282 | break; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
283 | case PROP_ONLINE: |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
284 | pidgin_blist_theme_set_online_text_info(theme, g_value_get_pointer(value)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
285 | break; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
286 | case PROP_AWAY: |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
287 | pidgin_blist_theme_set_away_text_info(theme, g_value_get_pointer(value)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
288 | break; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
289 | case PROP_OFFLINE: |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
290 | pidgin_blist_theme_set_offline_text_info(theme, g_value_get_pointer(value)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
291 | break; |
|
23665
c9944e9b97e1
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:
23662
diff
changeset
|
292 | case PROP_IDLE: |
|
c9944e9b97e1
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:
23662
diff
changeset
|
293 | pidgin_blist_theme_set_idle_text_info(theme, g_value_get_pointer(value)); |
|
c9944e9b97e1
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:
23662
diff
changeset
|
294 | break; |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
295 | case PROP_MESSAGE: |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
296 | pidgin_blist_theme_set_unread_message_text_info(theme, g_value_get_pointer(value)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
297 | break; |
|
25863
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
298 | case PROP_MESSAGE_NICK_SAID: |
|
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
299 | pidgin_blist_theme_set_unread_message_nick_said_text_info(theme, g_value_get_pointer(value)); |
|
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
300 | break; |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
301 | case PROP_STATUS: |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
302 | pidgin_blist_theme_set_status_text_info(theme, g_value_get_pointer(value)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
303 | break; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
304 | default: |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
305 | G_OBJECT_WARN_INVALID_PROPERTY_ID(obj, param_id, psec); |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
306 | break; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
307 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
308 | } |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
309 | |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
310 | static void |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
311 | pidgin_blist_theme_finalize(GObject *obj) |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
312 | { |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
313 | PidginBlistThemePrivate *priv; |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
314 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
315 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(obj); |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
316 | |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
317 | /* Buddy List */ |
|
26791
ff2c7913108e
Whoops, crashy-crashy.
Paul Aurich <darkrain42@pidgin.im>
parents:
26785
diff
changeset
|
318 | gdk_color_free(priv->bgcolor); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
319 | g_free(priv->layout); |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
320 | |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
321 | /* Group */ |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
322 | gdk_color_free(priv->expanded_color); |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
323 | pidgin_theme_font_free(priv->expanded); |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
324 | gdk_color_free(priv->collapsed_color); |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
325 | pidgin_theme_font_free(priv->collapsed); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
326 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
327 | /* Buddy */ |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
328 | gdk_color_free(priv->contact_color); |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
329 | pidgin_theme_font_free(priv->contact); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
330 | pidgin_theme_font_free(priv->online); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
331 | pidgin_theme_font_free(priv->away); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
332 | pidgin_theme_font_free(priv->offline); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
333 | pidgin_theme_font_free(priv->idle); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
334 | pidgin_theme_font_free(priv->message); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
335 | pidgin_theme_font_free(priv->message_nick_said); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
336 | pidgin_theme_font_free(priv->status); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
337 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
338 | g_free(priv); |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
339 | |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
340 | parent_class->finalize (obj); |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
341 | } |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
342 | |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
343 | static void |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
344 | pidgin_blist_theme_class_init(PidginBlistThemeClass *klass) |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
345 | { |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
346 | GObjectClass *obj_class = G_OBJECT_CLASS(klass); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
347 | GParamSpec *pspec; |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
348 | |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
349 | parent_class = g_type_class_peek_parent (klass); |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
350 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
351 | obj_class->get_property = pidgin_blist_theme_get_property; |
|
8251d0f67df5
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:
23657
diff
changeset
|
352 | obj_class->set_property = pidgin_blist_theme_set_property; |
|
8251d0f67df5
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:
23657
diff
changeset
|
353 | obj_class->finalize = pidgin_blist_theme_finalize; |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
354 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
355 | /* Buddy List */ |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
356 | pspec = g_param_spec_boxed("background-color", "Background Color", |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
357 | "The background color for the buddy list", |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
358 | GDK_TYPE_COLOR, G_PARAM_READWRITE); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
359 | g_object_class_install_property(obj_class, PROP_BACKGROUND_COLOR, pspec); |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
360 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
361 | pspec = g_param_spec_pointer("layout", "Layout", |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
362 | "The layout of icons, name, and status of the blist", |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
363 | G_PARAM_READWRITE); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
364 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
365 | g_object_class_install_property(obj_class, PROP_LAYOUT, pspec); |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
366 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
367 | /* Group */ |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
368 | pspec = g_param_spec_boxed("expanded-color", "Expanded Background Color", |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
369 | "The background color of an expanded group", |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
370 | GDK_TYPE_COLOR, G_PARAM_READWRITE); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
371 | g_object_class_install_property(obj_class, PROP_EXPANDED_COLOR, pspec); |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
372 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
373 | pspec = g_param_spec_pointer("expanded-text", "Expanded Text", |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
374 | "The text information for when a group is expanded", |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
375 | G_PARAM_READWRITE); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
376 | g_object_class_install_property(obj_class, PROP_EXPANDED_TEXT, pspec); |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
377 | |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
378 | pspec = g_param_spec_boxed("collapsed-color", "Collapsed Background Color", |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
379 | "The background color of a collapsed group", |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
380 | GDK_TYPE_COLOR, G_PARAM_READWRITE); |
|
23662
5128417a88fc
fixed group coloring
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23660
diff
changeset
|
381 | g_object_class_install_property(obj_class, PROP_COLLAPSED_COLOR, pspec); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
382 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
383 | pspec = g_param_spec_pointer("collapsed-text", "Collapsed Text", |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
384 | "The text information for when a group is collapsed", |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
385 | G_PARAM_READWRITE); |
|
23662
5128417a88fc
fixed group coloring
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23660
diff
changeset
|
386 | g_object_class_install_property(obj_class, PROP_COLLAPSED_TEXT, pspec); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
387 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
388 | /* Buddy */ |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
389 | pspec = g_param_spec_boxed("contact-color", "Contact/Chat Background Color", |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
390 | "The background color of a contact or chat", |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
391 | GDK_TYPE_COLOR, G_PARAM_READWRITE); |
|
23665
c9944e9b97e1
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:
23662
diff
changeset
|
392 | g_object_class_install_property(obj_class, PROP_CONTACT_COLOR, pspec); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
393 | |
|
23665
c9944e9b97e1
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:
23662
diff
changeset
|
394 | pspec = g_param_spec_pointer("contact", "Contact Text", |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
395 | "The text information for when a contact is expanded", |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
396 | G_PARAM_READWRITE); |
|
23665
c9944e9b97e1
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:
23662
diff
changeset
|
397 | g_object_class_install_property(obj_class, PROP_CONTACT, pspec); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
398 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
399 | pspec = g_param_spec_pointer("online", "On-line Text", |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
400 | "The text information for when a buddy is online", |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
401 | G_PARAM_READWRITE); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
402 | g_object_class_install_property(obj_class, PROP_ONLINE, pspec); |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
403 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
404 | pspec = g_param_spec_pointer("away", "Away Text", |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
405 | "The text information for when a buddy is away", |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
406 | G_PARAM_READWRITE); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
407 | g_object_class_install_property(obj_class, PROP_AWAY, pspec); |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
408 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
409 | pspec = g_param_spec_pointer("offline", "Off-line Text", |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
410 | "The text information for when a buddy is off-line", |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
411 | G_PARAM_READWRITE); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
412 | g_object_class_install_property(obj_class, PROP_OFFLINE, pspec); |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
413 | |
|
23665
c9944e9b97e1
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:
23662
diff
changeset
|
414 | pspec = g_param_spec_pointer("idle", "Idle Text", |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
415 | "The text information for when a buddy is idle", |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
416 | G_PARAM_READWRITE); |
|
23665
c9944e9b97e1
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:
23662
diff
changeset
|
417 | g_object_class_install_property(obj_class, PROP_IDLE, pspec); |
|
c9944e9b97e1
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:
23662
diff
changeset
|
418 | |
|
c9944e9b97e1
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:
23662
diff
changeset
|
419 | pspec = g_param_spec_pointer("message", "Message Text", |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
420 | "The text information for when a buddy has an unread message", |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
421 | G_PARAM_READWRITE); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
422 | g_object_class_install_property(obj_class, PROP_MESSAGE, pspec); |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
423 | |
|
25863
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
424 | pspec = g_param_spec_pointer("message_nick_said", "Message (Nick Said) Text", |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
425 | "The text information for when a chat has an unread message that mentions your nick", |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
426 | G_PARAM_READWRITE); |
|
25863
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
427 | g_object_class_install_property(obj_class, PROP_MESSAGE_NICK_SAID, pspec); |
|
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
428 | |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
429 | pspec = g_param_spec_pointer("status", "Status Text", |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
430 | "The text information for a buddy's status", |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
431 | G_PARAM_READWRITE); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
432 | g_object_class_install_property(obj_class, PROP_STATUS, pspec); |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
433 | } |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
434 | |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
435 | GType |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
436 | pidgin_blist_theme_get_type (void) |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
437 | { |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
438 | static GType type = 0; |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
439 | if (type == 0) { |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
440 | static GTypeInfo info = { |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
441 | sizeof(PidginBlistThemeClass), |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
442 | NULL, /* base_init */ |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
443 | NULL, /* base_finalize */ |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
444 | (GClassInitFunc)pidgin_blist_theme_class_init, /* class_init */ |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
445 | NULL, /* class_finalize */ |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
446 | NULL, /* class_data */ |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
447 | sizeof(PidginBlistTheme), |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
448 | 0, /* n_preallocs */ |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
449 | pidgin_blist_theme_init, /* instance_init */ |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
450 | NULL, /* value table */ |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
451 | }; |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
452 | type = g_type_register_static (PURPLE_TYPE_THEME, |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
453 | "PidginBlistTheme", &info, 0); |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
454 | } |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
455 | return type; |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
456 | } |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
457 | |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
458 | |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
459 | /***************************************************************************** |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
460 | * Public API functions |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
461 | *****************************************************************************/ |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
462 | |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
463 | /* get methods */ |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
464 | |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
465 | GdkColor * |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
466 | pidgin_blist_theme_get_background_color(PidginBlistTheme *theme) |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
467 | { |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
468 | PidginBlistThemePrivate *priv; |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
469 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
470 | g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
471 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
472 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
473 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
474 | return priv->bgcolor; |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
475 | } |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
476 | |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
477 | gdouble |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
478 | pidgin_blist_theme_get_opacity(PidginBlistTheme *theme) |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
479 | { |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
480 | PidginBlistThemePrivate *priv; |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
481 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
482 | g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), 1.0); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
483 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
484 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
485 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
486 | return priv->opacity; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
487 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
488 | |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
489 | PidginBlistLayout * |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
490 | pidgin_blist_theme_get_layout(PidginBlistTheme *theme) |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
491 | { |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
492 | PidginBlistThemePrivate *priv; |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
493 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
494 | g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
495 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
496 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
497 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
498 | return priv->layout; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
499 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
500 | |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
501 | GdkColor * |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
502 | pidgin_blist_theme_get_expanded_background_color(PidginBlistTheme *theme) |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
503 | { |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
504 | PidginBlistThemePrivate *priv; |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
505 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
506 | g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
507 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
508 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
509 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
510 | return priv->expanded_color; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
511 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
512 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
513 | PidginThemeFont * |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
514 | pidgin_blist_theme_get_expanded_text_info(PidginBlistTheme *theme) |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
515 | { |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
516 | PidginBlistThemePrivate *priv; |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
517 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
518 | g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
519 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
520 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
521 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
522 | return priv->expanded; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
523 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
524 | |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
525 | GdkColor * |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
526 | pidgin_blist_theme_get_collapsed_background_color(PidginBlistTheme *theme) |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
527 | { |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
528 | PidginBlistThemePrivate *priv; |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
529 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
530 | g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
531 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
532 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
533 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
534 | return priv->collapsed_color; |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
535 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
536 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
537 | PidginThemeFont * |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
538 | pidgin_blist_theme_get_collapsed_text_info(PidginBlistTheme *theme) |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
539 | { |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
540 | PidginBlistThemePrivate *priv; |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
541 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
542 | g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
543 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
544 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
545 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
546 | return priv->collapsed; |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
547 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
548 | |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
549 | GdkColor * |
|
23665
c9944e9b97e1
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:
23662
diff
changeset
|
550 | pidgin_blist_theme_get_contact_color(PidginBlistTheme *theme) |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
551 | { |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
552 | PidginBlistThemePrivate *priv; |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
553 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
554 | g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
555 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
556 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
557 | |
|
23665
c9944e9b97e1
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:
23662
diff
changeset
|
558 | return priv->contact_color; |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
559 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
560 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
561 | PidginThemeFont * |
|
23665
c9944e9b97e1
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:
23662
diff
changeset
|
562 | pidgin_blist_theme_get_contact_text_info(PidginBlistTheme *theme) |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
563 | { |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
564 | PidginBlistThemePrivate *priv; |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
565 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
566 | g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
567 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
568 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
569 | |
|
23665
c9944e9b97e1
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:
23662
diff
changeset
|
570 | return priv->contact; |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
571 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
572 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
573 | PidginThemeFont * |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
574 | pidgin_blist_theme_get_online_text_info(PidginBlistTheme *theme) |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
575 | { |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
576 | PidginBlistThemePrivate *priv; |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
577 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
578 | g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
579 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
580 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
581 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
582 | return priv->online; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
583 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
584 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
585 | PidginThemeFont * |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
586 | pidgin_blist_theme_get_away_text_info(PidginBlistTheme *theme) |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
587 | { |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
588 | PidginBlistThemePrivate *priv; |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
589 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
590 | g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
591 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
592 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
593 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
594 | return priv->away; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
595 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
596 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
597 | PidginThemeFont * |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
598 | pidgin_blist_theme_get_offline_text_info(PidginBlistTheme *theme) |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
599 | { |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
600 | PidginBlistThemePrivate *priv; |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
601 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
602 | g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
603 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
604 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
605 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
606 | return priv->offline; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
607 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
608 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
609 | PidginThemeFont * |
|
23665
c9944e9b97e1
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:
23662
diff
changeset
|
610 | pidgin_blist_theme_get_idle_text_info(PidginBlistTheme *theme) |
|
c9944e9b97e1
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:
23662
diff
changeset
|
611 | { |
|
c9944e9b97e1
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:
23662
diff
changeset
|
612 | PidginBlistThemePrivate *priv; |
|
c9944e9b97e1
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:
23662
diff
changeset
|
613 | |
|
c9944e9b97e1
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:
23662
diff
changeset
|
614 | g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL); |
|
c9944e9b97e1
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:
23662
diff
changeset
|
615 | |
|
c9944e9b97e1
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:
23662
diff
changeset
|
616 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
c9944e9b97e1
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:
23662
diff
changeset
|
617 | |
|
c9944e9b97e1
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:
23662
diff
changeset
|
618 | return priv->idle; |
|
c9944e9b97e1
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:
23662
diff
changeset
|
619 | } |
|
c9944e9b97e1
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:
23662
diff
changeset
|
620 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
621 | PidginThemeFont * |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
622 | pidgin_blist_theme_get_unread_message_text_info(PidginBlistTheme *theme) |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
623 | { |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
624 | PidginBlistThemePrivate *priv; |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
625 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
626 | g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
627 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
628 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
629 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
630 | return priv->message; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
631 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
632 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
633 | PidginThemeFont * |
|
25863
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
634 | pidgin_blist_theme_get_unread_message_nick_said_text_info(PidginBlistTheme *theme) |
|
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
635 | { |
|
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
636 | PidginBlistThemePrivate *priv; |
|
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
637 | |
|
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
638 | g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL); |
|
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
639 | |
|
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
640 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
641 | |
|
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
642 | return priv->message_nick_said; |
|
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
643 | } |
|
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
644 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
645 | PidginThemeFont * |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
646 | pidgin_blist_theme_get_status_text_info(PidginBlistTheme *theme) |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
647 | { |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
648 | PidginBlistThemePrivate *priv; |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
649 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
650 | g_return_val_if_fail(PIDGIN_IS_BLIST_THEME(theme), NULL); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
651 | |
|
23659
8251d0f67df5
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:
23657
diff
changeset
|
652 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
23657
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
653 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
654 | return priv->status; |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
655 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
656 | |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
657 | /* Set Methods */ |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
658 | void |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
659 | pidgin_blist_theme_set_background_color(PidginBlistTheme *theme, const GdkColor *color) |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
660 | { |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
661 | PidginBlistThemePrivate *priv; |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
662 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
663 | g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
664 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
665 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
666 | |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
667 | gdk_color_free(priv->bgcolor); |
|
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
668 | priv->bgcolor = gdk_color_copy(color); |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
669 | } |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
670 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
671 | void |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
672 | pidgin_blist_theme_set_opacity(PidginBlistTheme *theme, gdouble opacity) |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
673 | { |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
674 | PidginBlistThemePrivate *priv; |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
675 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
676 | g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme) || opacity < 0.0 || opacity > 1.0); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
677 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
678 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
679 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
680 | priv->opacity = opacity; |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
681 | } |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
682 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
683 | void |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
684 | pidgin_blist_theme_set_layout(PidginBlistTheme *theme, const PidginBlistLayout *layout) |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
685 | { |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
686 | PidginBlistThemePrivate *priv; |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
687 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
688 | g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
689 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
690 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
691 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
692 | g_free(priv->layout); |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
693 | priv->layout = g_memdup(layout, sizeof(PidginBlistLayout)); |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
694 | } |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
695 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
696 | void |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
697 | pidgin_blist_theme_set_expanded_background_color(PidginBlistTheme *theme, const GdkColor *color) |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
698 | { |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
699 | PidginBlistThemePrivate *priv; |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
700 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
701 | g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
702 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
703 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
704 | |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
705 | gdk_color_free(priv->expanded_color); |
|
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
706 | priv->expanded_color = gdk_color_copy(color); |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
707 | } |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
708 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
709 | void |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
710 | pidgin_blist_theme_set_expanded_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair) |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
711 | { |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
712 | PidginBlistThemePrivate *priv; |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
713 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
714 | g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
715 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
716 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
717 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
718 | pidgin_theme_font_free(priv->expanded); |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
719 | priv->expanded = copy_font_and_color(pair); |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
720 | } |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
721 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
722 | void |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
723 | pidgin_blist_theme_set_collapsed_background_color(PidginBlistTheme *theme, const GdkColor *color) |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
724 | { |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
725 | PidginBlistThemePrivate *priv; |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
726 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
727 | g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
728 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
729 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
730 | |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
731 | gdk_color_free(priv->collapsed_color); |
|
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
732 | priv->collapsed_color = gdk_color_copy(color); |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
733 | } |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
734 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
735 | void |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
736 | pidgin_blist_theme_set_collapsed_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair) |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
737 | { |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
738 | PidginBlistThemePrivate *priv; |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
739 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
740 | g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
741 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
742 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
743 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
744 | pidgin_theme_font_free(priv->collapsed); |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
745 | priv->collapsed = copy_font_and_color(pair); |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
746 | } |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
747 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
748 | void |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
749 | pidgin_blist_theme_set_contact_color(PidginBlistTheme *theme, const GdkColor *color) |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
750 | { |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
751 | PidginBlistThemePrivate *priv; |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
752 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
753 | g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
754 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
755 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
756 | |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
757 | gdk_color_free(priv->contact_color); |
|
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
758 | priv->contact_color = gdk_color_copy(color); |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
759 | } |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
760 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
761 | void |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
762 | pidgin_blist_theme_set_contact_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair) |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
763 | { |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
764 | PidginBlistThemePrivate *priv; |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
765 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
766 | g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
767 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
768 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
769 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
770 | pidgin_theme_font_free(priv->contact); |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
771 | priv->contact = copy_font_and_color(pair); |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
772 | } |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
773 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
774 | void |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
775 | pidgin_blist_theme_set_online_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair) |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
776 | { |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
777 | PidginBlistThemePrivate *priv; |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
778 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
779 | g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
780 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
781 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
782 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
783 | pidgin_theme_font_free(priv->online); |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
784 | priv->online = copy_font_and_color(pair); |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
785 | } |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
786 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
787 | void |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
788 | pidgin_blist_theme_set_away_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair) |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
789 | { |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
790 | PidginBlistThemePrivate *priv; |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
791 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
792 | g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
793 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
794 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
795 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
796 | pidgin_theme_font_free(priv->away); |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
797 | priv->away = copy_font_and_color(pair); |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
798 | } |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
799 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
800 | void |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
801 | pidgin_blist_theme_set_offline_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair) |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
802 | { |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
803 | PidginBlistThemePrivate *priv; |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
804 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
805 | g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
806 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
807 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
808 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
809 | pidgin_theme_font_free(priv->offline); |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
810 | priv->offline = copy_font_and_color(pair); |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
811 | } |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
812 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
813 | void |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
814 | pidgin_blist_theme_set_idle_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair) |
|
23665
c9944e9b97e1
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:
23662
diff
changeset
|
815 | { |
|
c9944e9b97e1
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:
23662
diff
changeset
|
816 | PidginBlistThemePrivate *priv; |
|
c9944e9b97e1
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:
23662
diff
changeset
|
817 | |
|
c9944e9b97e1
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:
23662
diff
changeset
|
818 | g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme)); |
|
c9944e9b97e1
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:
23662
diff
changeset
|
819 | |
|
c9944e9b97e1
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:
23662
diff
changeset
|
820 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
c9944e9b97e1
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:
23662
diff
changeset
|
821 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
822 | pidgin_theme_font_free(priv->idle); |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
823 | priv->idle = copy_font_and_color(pair); |
|
23665
c9944e9b97e1
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:
23662
diff
changeset
|
824 | } |
|
c9944e9b97e1
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:
23662
diff
changeset
|
825 | |
|
c9944e9b97e1
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:
23662
diff
changeset
|
826 | void |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
827 | pidgin_blist_theme_set_unread_message_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair) |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
828 | { |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
829 | PidginBlistThemePrivate *priv; |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
830 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
831 | g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
832 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
833 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
834 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
835 | pidgin_theme_font_free(priv->message); |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
836 | priv->message = copy_font_and_color(pair); |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
837 | } |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
838 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
839 | void |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
840 | pidgin_blist_theme_set_unread_message_nick_said_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair) |
|
25863
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
841 | { |
|
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
842 | PidginBlistThemePrivate *priv; |
|
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
843 | |
|
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
844 | g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme)); |
|
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
845 | |
|
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
846 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
847 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
848 | pidgin_theme_font_free(priv->message_nick_said); |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
849 | priv->message_nick_said = copy_font_and_color(pair); |
|
25863
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
850 | } |
|
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
851 | |
|
b724badf6cd2
Adding the patch to extend the blist theme to allow coloring of chat nodes with unread messages mentioning your nick.
Paul Aurich <darkrain42@pidgin.im>
parents:
23972
diff
changeset
|
852 | void |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
853 | pidgin_blist_theme_set_status_text_info(PidginBlistTheme *theme, const PidginThemeFont *pair) |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
854 | { |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
855 | PidginBlistThemePrivate *priv; |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
856 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
857 | g_return_if_fail(PIDGIN_IS_BLIST_THEME(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
858 | |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
859 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(G_OBJECT(theme)); |
|
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
860 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
861 | pidgin_theme_font_free(priv->status); |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
862 | priv->status = copy_font_and_color(pair); |
|
23660
8637cec033e1
Fixed gtkblist-loader_build to no longer assume xml file is correct, added set methods to gtkblist-theme
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23659
diff
changeset
|
863 | } |