Wed, 05 Oct 2016 22:16:57 -0500
closing old/merged branches
|
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 | |
|
26805
30a7f19d9567
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26804
diff
changeset
|
23 | #include "internal.h" |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
24 | #include "glibcompat.h" |
|
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
25 | |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
26 | #include "gtkblist-theme.h" |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
27 | |
|
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
|
28 | #define PIDGIN_BLIST_THEME_GET_PRIVATE(Gobject) \ |
|
32535
232a97824349
Use GObject's instance private data for all the theme GObjects.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29295
diff
changeset
|
29 | (G_TYPE_INSTANCE_GET_PRIVATE((Gobject), PIDGIN_TYPE_BLIST_THEME, PidginBlistThemePrivate)) |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
30 | |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
31 | /****************************************************************************** |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
32 | * Structs |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
33 | *****************************************************************************/ |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
34 | |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
35 | typedef struct { |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
36 | /* Buddy list */ |
|
23972
90e0da03c053
theme loader cleanup, and remove a few warnings
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23665
diff
changeset
|
37 | 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
|
38 | 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
|
39 | PidginBlistLayout *layout; |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
40 | |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
41 | /* 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
|
42 | GdkColor *expanded_color; |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
43 | PidginThemeFont *expanded; |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
44 | |
|
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
|
45 | GdkColor *collapsed_color; |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
46 | PidginThemeFont *collapsed; |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
47 | |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
48 | /* 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
|
49 | 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
|
50 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
51 | PidginThemeFont *contact; |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
52 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
53 | PidginThemeFont *online; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
54 | PidginThemeFont *away; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
55 | PidginThemeFont *offline; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
56 | PidginThemeFont *idle; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
57 | PidginThemeFont *message; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
58 | 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
|
59 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
60 | PidginThemeFont *status; |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
61 | |
|
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
|
62 | } PidginBlistThemePrivate; |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
63 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
64 | struct _PidginThemeFont |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
65 | { |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
66 | gchar *font; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
67 | gchar color[10]; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
68 | GdkColor *gdkcolor; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
69 | }; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
70 | |
|
23656
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 | * Enums |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
73 | *****************************************************************************/ |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
74 | |
|
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
|
75 | 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
|
76 | 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
|
77 | 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
|
78 | 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
|
79 | 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
|
80 | 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
|
81 | 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
|
82 | 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
|
83 | 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
|
84 | 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
|
85 | 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
|
86 | 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
|
87 | 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
|
88 | 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
|
89 | 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
|
90 | 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
|
91 | 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
|
92 | PROP_STATUS, |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
93 | PROP_LAST |
|
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 | }; |
|
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
|
95 | |
|
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
|
96 | /****************************************************************************** |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
97 | * Globals |
|
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
98 | *****************************************************************************/ |
|
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
99 | |
|
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
100 | static GObjectClass *parent_class = NULL; |
|
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
101 | static GParamSpec *properties[PROP_LAST]; |
|
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
102 | |
|
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
103 | /****************************************************************************** |
|
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
|
104 | * 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
|
105 | *****************************************************************************/ |
|
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
|
106 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
107 | PidginThemeFont * |
|
26804
76e82d14bbc7
Document some functions.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26803
diff
changeset
|
108 | pidgin_theme_font_new(const gchar *face, GdkColor *color) |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
109 | { |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
110 | PidginThemeFont *font = g_new0(PidginThemeFont, 1); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
111 | font->font = g_strdup(face); |
|
26807
bc47a99e9243
Allow unsetting the color for a PidginThemeFont.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26805
diff
changeset
|
112 | if (color) |
|
bc47a99e9243
Allow unsetting the color for a PidginThemeFont.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26805
diff
changeset
|
113 | pidgin_theme_font_set_color(font, color); |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
114 | return font; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
115 | } |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
116 | |
|
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
|
117 | void |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
118 | 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
|
119 | { |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
120 | if (pair != NULL) { |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
121 | g_free(pair->font); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
122 | if (pair->gdkcolor) |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
123 | 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
|
124 | 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
|
125 | } |
|
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
|
126 | } |
|
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
|
127 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
128 | static PidginThemeFont * |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
129 | copy_font_and_color(const PidginThemeFont *pair) |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
130 | { |
|
27448
c687c6f42374
Fix a compile warning
Mark Doliner <markdoliner@pidgin.im>
parents:
27444
diff
changeset
|
131 | PidginThemeFont *copy; |
|
c687c6f42374
Fix a compile warning
Mark Doliner <markdoliner@pidgin.im>
parents:
27444
diff
changeset
|
132 | |
|
27444
21add455833a
Better error checking on the theme loaders.
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
26810
diff
changeset
|
133 | if (pair == NULL) |
|
21add455833a
Better error checking on the theme loaders.
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
26810
diff
changeset
|
134 | return NULL; |
|
21add455833a
Better error checking on the theme loaders.
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
26810
diff
changeset
|
135 | |
|
27448
c687c6f42374
Fix a compile warning
Mark Doliner <markdoliner@pidgin.im>
parents:
27444
diff
changeset
|
136 | copy = g_new0(PidginThemeFont, 1); |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
137 | copy->font = g_strdup(pair->font); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
138 | strncpy(copy->color, pair->color, sizeof(copy->color) - 1); |
|
26809
c120381fbe45
Fix some assertion failures.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26807
diff
changeset
|
139 | if (pair->gdkcolor) |
|
29295
42c43b85e294
blist theme: Do not treat missing colors as black.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
28304
diff
changeset
|
140 | copy->gdkcolor = pair->gdkcolor ? gdk_color_copy(pair->gdkcolor) : NULL; |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
141 | return copy; |
|
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 | |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
144 | void |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
145 | pidgin_theme_font_set_font_face(PidginThemeFont *font, const gchar *face) |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
146 | { |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
147 | g_return_if_fail(font); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
148 | g_return_if_fail(face); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
149 | |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
150 | g_free(font->font); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
151 | font->font = g_strdup(face); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
152 | } |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
153 | |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
154 | void |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
155 | 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
|
156 | { |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
157 | g_return_if_fail(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 | if (font->gdkcolor) |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
160 | gdk_color_free(font->gdkcolor); |
|
26807
bc47a99e9243
Allow unsetting the color for a PidginThemeFont.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26805
diff
changeset
|
161 | |
|
bc47a99e9243
Allow unsetting the color for a PidginThemeFont.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26805
diff
changeset
|
162 | font->gdkcolor = color ? gdk_color_copy(color) : NULL; |
|
bc47a99e9243
Allow unsetting the color for a PidginThemeFont.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26805
diff
changeset
|
163 | if (color) |
|
bc47a99e9243
Allow unsetting the color for a PidginThemeFont.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26805
diff
changeset
|
164 | g_snprintf(font->color, sizeof(font->color), |
|
bc47a99e9243
Allow unsetting the color for a PidginThemeFont.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26805
diff
changeset
|
165 | "#%02x%02x%02x", color->red >> 8, color->green >> 8, color->blue >> 8); |
|
bc47a99e9243
Allow unsetting the color for a PidginThemeFont.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26805
diff
changeset
|
166 | else |
|
bc47a99e9243
Allow unsetting the color for a PidginThemeFont.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26805
diff
changeset
|
167 | font->color[0] = '\0'; |
|
26803
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_font_face(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->font; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
175 | } |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
176 | |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
177 | const GdkColor * |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
178 | pidgin_theme_font_get_color(PidginThemeFont *font) |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
179 | { |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
180 | g_return_val_if_fail(font, NULL); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
181 | return font->gdkcolor; |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
182 | } |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
183 | |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
184 | const gchar * |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
185 | pidgin_theme_font_get_color_describe(PidginThemeFont *font) |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
186 | { |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
187 | g_return_val_if_fail(font, NULL); |
|
26807
bc47a99e9243
Allow unsetting the color for a PidginThemeFont.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26805
diff
changeset
|
188 | return font->color[0] ? font->color : NULL; |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
189 | } |
|
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
190 | |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
191 | /****************************************************************************** |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
192 | * GObject Stuff |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
193 | *****************************************************************************/ |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
194 | |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
195 | 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
|
196 | 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
|
197 | 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
|
198 | { |
|
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 | 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
|
200 | |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
201 | 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
|
202 | case PROP_BACKGROUND_COLOR: |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
203 | 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
|
204 | 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
|
205 | 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
|
206 | 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
|
207 | 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
|
208 | 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
|
209 | 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
|
210 | 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
|
211 | case PROP_EXPANDED_COLOR: |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
212 | 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
|
213 | 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
|
214 | 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
|
215 | 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
|
216 | 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
|
217 | case PROP_COLLAPSED_COLOR: |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
218 | 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
|
219 | 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
|
220 | 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
|
221 | 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
|
222 | 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
|
223 | case PROP_CONTACT_COLOR: |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
224 | 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
|
225 | 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
|
226 | 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
|
227 | 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
|
228 | 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
|
229 | 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
|
230 | 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
|
231 | 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
|
232 | 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
|
233 | 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
|
234 | 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
|
235 | 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
|
236 | 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
|
237 | 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
|
238 | 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
|
239 | 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
|
240 | 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
|
241 | 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
|
242 | 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
|
243 | 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
|
244 | 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
|
245 | 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
|
246 | 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
|
247 | 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
|
248 | 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
|
249 | 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
|
250 | 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
|
251 | 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
|
252 | 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
|
253 | } |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
254 | } |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
255 | |
|
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 | static void |
|
23972
90e0da03c053
theme loader cleanup, and remove a few warnings
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23665
diff
changeset
|
257 | 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
|
258 | 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
|
259 | { |
|
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 | 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
|
261 | |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
262 | 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
|
263 | case PROP_BACKGROUND_COLOR: |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
264 | 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
|
265 | 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
|
266 | 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
|
267 | 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
|
268 | 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
|
269 | 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
|
270 | 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
|
271 | 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
|
272 | case PROP_EXPANDED_COLOR: |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
273 | 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
|
274 | 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
|
275 | 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
|
276 | 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
|
277 | 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
|
278 | case PROP_COLLAPSED_COLOR: |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
279 | 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
|
280 | 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
|
281 | 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
|
282 | 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
|
283 | 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
|
284 | case PROP_CONTACT_COLOR: |
|
26801
c712e48798a7
Use boxed-types for the color properties.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26791
diff
changeset
|
285 | 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
|
286 | 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
|
287 | 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
|
288 | 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
|
289 | 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
|
290 | 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
|
291 | 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
|
292 | 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
|
293 | 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
|
294 | 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
|
295 | 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
|
296 | 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
|
297 | 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
|
298 | 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
|
299 | 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
|
300 | 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
|
301 | 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
|
302 | 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
|
303 | 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
|
304 | 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
|
305 | 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
|
306 | 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
|
307 | 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
|
308 | 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
|
309 | 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
|
310 | 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
|
311 | 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
|
312 | 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
|
313 | 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
|
314 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
315 | } |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
316 | |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
317 | static void |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
318 | 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
|
319 | { |
|
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
|
320 | PidginBlistThemePrivate *priv; |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
321 | |
|
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
|
322 | 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
|
323 | |
|
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
|
324 | /* Buddy List */ |
|
26805
30a7f19d9567
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26804
diff
changeset
|
325 | if (priv->bgcolor) |
|
30a7f19d9567
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26804
diff
changeset
|
326 | 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
|
327 | g_free(priv->layout); |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
328 | |
|
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
|
329 | /* Group */ |
|
26805
30a7f19d9567
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26804
diff
changeset
|
330 | if (priv->expanded_color) |
|
30a7f19d9567
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26804
diff
changeset
|
331 | gdk_color_free(priv->expanded_color); |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
332 | pidgin_theme_font_free(priv->expanded); |
|
26805
30a7f19d9567
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26804
diff
changeset
|
333 | if (priv->collapsed_color) |
|
30a7f19d9567
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26804
diff
changeset
|
334 | gdk_color_free(priv->collapsed_color); |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
335 | 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
|
336 | |
|
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 | /* Buddy */ |
|
26805
30a7f19d9567
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26804
diff
changeset
|
338 | if (priv->contact_color) |
|
30a7f19d9567
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26804
diff
changeset
|
339 | gdk_color_free(priv->contact_color); |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
340 | pidgin_theme_font_free(priv->contact); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
341 | pidgin_theme_font_free(priv->online); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
342 | pidgin_theme_font_free(priv->away); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
343 | pidgin_theme_font_free(priv->offline); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
344 | pidgin_theme_font_free(priv->idle); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
345 | pidgin_theme_font_free(priv->message); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
346 | pidgin_theme_font_free(priv->message_nick_said); |
|
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
347 | 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
|
348 | |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
349 | parent_class->finalize (obj); |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
350 | } |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
351 | |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
352 | static void |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
353 | pidgin_blist_theme_init(PidginBlistTheme *theme) |
|
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
354 | { |
|
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
355 | PIDGIN_BLIST_THEME_GET_PRIVATE(theme)->opacity = 1.0; |
|
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
356 | } |
|
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
357 | |
|
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
358 | static void |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
359 | 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
|
360 | { |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
361 | GObjectClass *obj_class = G_OBJECT_CLASS(klass); |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
362 | |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
363 | parent_class = g_type_class_peek_parent (klass); |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
364 | |
|
32535
232a97824349
Use GObject's instance private data for all the theme GObjects.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29295
diff
changeset
|
365 | g_type_class_add_private(klass, sizeof(PidginBlistThemePrivate)); |
|
232a97824349
Use GObject's instance private data for all the theme GObjects.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29295
diff
changeset
|
366 | |
|
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
|
367 | 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
|
368 | 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
|
369 | 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
|
370 | |
|
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 | /* Buddy List */ |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
372 | properties[PROP_BACKGROUND_COLOR] = g_param_spec_boxed("background-color", |
|
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
373 | "Background Color", |
|
35058
506740af931c
Unmark property names and blurbs from translatable to non-translatable
Ankit Vani <a@nevitus.org>
parents:
32538
diff
changeset
|
374 | "The background color for the buddy list", |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
375 | GDK_TYPE_COLOR, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
|
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 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
377 | properties[PROP_OPACITY] = g_param_spec_double("opacity", "Opacity", |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
378 | "The opacity of the buddy list", |
|
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
379 | 0.0, 1.0, 1.0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
|
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
380 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
381 | properties[PROP_LAYOUT] = g_param_spec_pointer("layout", "Layout", |
|
35058
506740af931c
Unmark property names and blurbs from translatable to non-translatable
Ankit Vani <a@nevitus.org>
parents:
32538
diff
changeset
|
382 | "The layout of icons, name, and status of the buddy list", |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
383 | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
|
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
|
384 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
385 | /* Group */ |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
386 | properties[PROP_EXPANDED_COLOR] = g_param_spec_boxed("expanded-color", |
|
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
387 | "Expanded Background Color", |
|
35058
506740af931c
Unmark property names and blurbs from translatable to non-translatable
Ankit Vani <a@nevitus.org>
parents:
32538
diff
changeset
|
388 | "The background color of an expanded group", |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
389 | GDK_TYPE_COLOR, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
|
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
|
390 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
391 | properties[PROP_EXPANDED_TEXT] = g_param_spec_pointer("expanded-text", |
|
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
392 | "Expanded Text", |
|
35058
506740af931c
Unmark property names and blurbs from translatable to non-translatable
Ankit Vani <a@nevitus.org>
parents:
32538
diff
changeset
|
393 | "The text information for when a group is expanded", |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
394 | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
|
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
|
395 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
396 | properties[PROP_COLLAPSED_COLOR] = g_param_spec_boxed("collapsed-color", |
|
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
397 | "Collapsed Background Color", |
|
35058
506740af931c
Unmark property names and blurbs from translatable to non-translatable
Ankit Vani <a@nevitus.org>
parents:
32538
diff
changeset
|
398 | "The background color of a collapsed group", |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
399 | GDK_TYPE_COLOR, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
|
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
|
400 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
401 | properties[PROP_COLLAPSED_TEXT] = g_param_spec_pointer("collapsed-text", |
|
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
402 | "Collapsed Text", |
|
35058
506740af931c
Unmark property names and blurbs from translatable to non-translatable
Ankit Vani <a@nevitus.org>
parents:
32538
diff
changeset
|
403 | "The text information for when a group is collapsed", |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
404 | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
|
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
|
405 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
406 | /* Buddy */ |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
407 | properties[PROP_CONTACT_COLOR] = g_param_spec_boxed("contact-color", |
|
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
408 | "Contact/Chat Background Color", |
|
35058
506740af931c
Unmark property names and blurbs from translatable to non-translatable
Ankit Vani <a@nevitus.org>
parents:
32538
diff
changeset
|
409 | "The background color of a contact or chat", |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
410 | GDK_TYPE_COLOR, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
|
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
|
411 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
412 | properties[PROP_CONTACT] = g_param_spec_pointer("contact", |
|
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
413 | "Contact Text", |
|
35058
506740af931c
Unmark property names and blurbs from translatable to non-translatable
Ankit Vani <a@nevitus.org>
parents:
32538
diff
changeset
|
414 | "The text information for when a contact is expanded", |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
415 | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
|
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
|
416 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
417 | properties[PROP_ONLINE] = g_param_spec_pointer("online", |
|
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
418 | "Online Text", |
|
35058
506740af931c
Unmark property names and blurbs from translatable to non-translatable
Ankit Vani <a@nevitus.org>
parents:
32538
diff
changeset
|
419 | "The text information for when a buddy is online", |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
420 | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
|
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
|
421 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
422 | properties[PROP_AWAY] = g_param_spec_pointer("away", |
|
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
423 | "Away Text", |
|
35058
506740af931c
Unmark property names and blurbs from translatable to non-translatable
Ankit Vani <a@nevitus.org>
parents:
32538
diff
changeset
|
424 | "The text information for when a buddy is away", |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
425 | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
|
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
|
426 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
427 | properties[PROP_OFFLINE] = g_param_spec_pointer("offline", |
|
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
428 | "Offline Text", |
|
35058
506740af931c
Unmark property names and blurbs from translatable to non-translatable
Ankit Vani <a@nevitus.org>
parents:
32538
diff
changeset
|
429 | "The text information for when a buddy is offline", |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
430 | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
|
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
|
431 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
432 | properties[PROP_IDLE] = g_param_spec_pointer("idle", |
|
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
433 | "Idle Text", |
|
35058
506740af931c
Unmark property names and blurbs from translatable to non-translatable
Ankit Vani <a@nevitus.org>
parents:
32538
diff
changeset
|
434 | "The text information for when a buddy is idle", |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
435 | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
|
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
|
436 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
437 | properties[PROP_MESSAGE] = g_param_spec_pointer("message", |
|
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
438 | "Message Text", |
|
35058
506740af931c
Unmark property names and blurbs from translatable to non-translatable
Ankit Vani <a@nevitus.org>
parents:
32538
diff
changeset
|
439 | "The text information for when a buddy has an unread message", |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
440 | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
|
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
|
441 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
442 | properties[PROP_MESSAGE_NICK_SAID] = g_param_spec_pointer("message-nick-said", |
|
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
443 | "Message (Nick Said) Text", |
|
35058
506740af931c
Unmark property names and blurbs from translatable to non-translatable
Ankit Vani <a@nevitus.org>
parents:
32538
diff
changeset
|
444 | "The text information for when a chat has an unread message that mentions your nickname", |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
445 | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
|
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
|
446 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
447 | properties[PROP_STATUS] = g_param_spec_pointer("status", |
|
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
448 | "Status Text", |
|
35058
506740af931c
Unmark property names and blurbs from translatable to non-translatable
Ankit Vani <a@nevitus.org>
parents:
32538
diff
changeset
|
449 | "The text information for a buddy's status", |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
450 | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
|
35082
05a66637ec23
pidgin: use g_object_class_install_properties instead of repeated g_object_class_install_property
Ankit Vani <a@nevitus.org>
parents:
35075
diff
changeset
|
451 | |
|
05a66637ec23
pidgin: use g_object_class_install_properties instead of repeated g_object_class_install_property
Ankit Vani <a@nevitus.org>
parents:
35075
diff
changeset
|
452 | g_object_class_install_properties(obj_class, PROP_LAST, properties); |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
453 | } |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
454 | |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
455 | 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
|
456 | 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
|
457 | { |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
458 | static GType type = 0; |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
459 | if (type == 0) { |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
460 | static GTypeInfo info = { |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
461 | sizeof(PidginBlistThemeClass), |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
462 | NULL, /* base_init */ |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
463 | NULL, /* base_finalize */ |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
464 | (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
|
465 | NULL, /* class_finalize */ |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
466 | NULL, /* class_data */ |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
467 | sizeof(PidginBlistTheme), |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
468 | 0, /* n_preallocs */ |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
469 | (GInstanceInitFunc)pidgin_blist_theme_init, /* instance_init */ |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
470 | NULL, /* value table */ |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
471 | }; |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
472 | 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
|
473 | "PidginBlistTheme", &info, 0); |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
474 | } |
|
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
475 | return type; |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
476 | } |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
477 | |
|
35600
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
478 | /************************************************************************** |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
479 | * GBoxed Stuff |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
480 | **************************************************************************/ |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
481 | |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
482 | static PidginThemeFont * |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
483 | pidgin_theme_font_copy(PidginThemeFont *font) |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
484 | { |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
485 | g_return_val_if_fail(font != NULL, NULL); |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
486 | |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
487 | return pidgin_theme_font_new(font->font, font->gdkcolor); |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
488 | } |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
489 | |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
490 | GType |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
491 | pidgin_theme_font_get_type(void) |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
492 | { |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
493 | static GType type = 0; |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
494 | |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
495 | if (type == 0) { |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
496 | type = g_boxed_type_register_static("PidginThemeFont", |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
497 | (GBoxedCopyFunc)pidgin_theme_font_copy, |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
498 | (GBoxedFreeFunc)pidgin_theme_font_free); |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
499 | } |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
500 | |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
501 | return type; |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
502 | } |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
503 | |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
504 | static PidginBlistLayout * |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
505 | pidgin_blist_layout_copy(const PidginBlistLayout *layout) |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
506 | { |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
507 | g_return_val_if_fail(layout != NULL, NULL); |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
508 | |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
509 | return g_memdup(layout, sizeof(PidginBlistLayout)); |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
510 | } |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
511 | |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
512 | GType |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
513 | pidgin_blist_layout_get_type(void) |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
514 | { |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
515 | static GType type = 0; |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
516 | |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
517 | if (type == 0) { |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
518 | type = g_boxed_type_register_static("PidginBlistLayout", |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
519 | (GBoxedCopyFunc)pidgin_blist_layout_copy, |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
520 | (GBoxedFreeFunc)g_free); |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
521 | } |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
522 | |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
523 | return type; |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
524 | } |
|
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
525 | |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
526 | |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
527 | /***************************************************************************** |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
528 | * Public API functions |
|
23656
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
529 | *****************************************************************************/ |
|
d4acd51c1446
start of blist themes (themes have no effect on display)
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
diff
changeset
|
530 | |
|
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
|
531 | /* get methods */ |
|
25875
a98b16817658
Lots of minor whitespace and comment changes:
Mark Doliner <markdoliner@pidgin.im>
parents:
25863
diff
changeset
|
532 | |
|
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
|
533 | 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
|
534 | 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
|
535 | { |
|
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
|
536 | 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
|
537 | |
|
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
|
538 | 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
|
539 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
540 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(theme); |
|
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
|
541 | |
|
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
|
542 | 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
|
543 | } |
|
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
|
544 | |
|
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 | 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
|
546 | 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
|
547 | { |
|
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
|
548 | 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
|
549 | |
|
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
|
550 | 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
|
551 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
552 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(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
|
553 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
554 | 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
|
555 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
556 | |
|
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
|
557 | 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
|
558 | 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
|
559 | { |
|
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
|
560 | 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
|
561 | |
|
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
|
562 | 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
|
563 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
564 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(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
|
565 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
566 | 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
|
567 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
568 | |
|
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
|
569 | 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
|
570 | 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
|
571 | { |
|
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
|
572 | 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
|
573 | |
|
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 | 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
|
575 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
576 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(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
|
577 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
578 | 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
|
579 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
580 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
581 | 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
|
582 | 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
|
583 | { |
|
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
|
584 | 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
|
585 | |
|
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 | 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
|
587 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
588 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(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
|
589 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
590 | 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
|
591 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
592 | |
|
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
|
593 | 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
|
594 | 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
|
595 | { |
|
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
|
596 | 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
|
597 | |
|
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 | 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
|
599 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
600 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(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
|
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 | 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
|
603 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
604 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
605 | 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
|
606 | 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
|
607 | { |
|
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
|
608 | 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
|
609 | |
|
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
|
610 | 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
|
611 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
612 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(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
|
613 | |
|
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
|
614 | 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
|
615 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
616 | |
|
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
|
617 | 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
|
618 | 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
|
619 | { |
|
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
|
620 | 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
|
621 | |
|
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 | 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
|
623 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
624 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(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
|
625 | |
|
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
|
626 | 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
|
627 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
628 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
629 | 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
|
630 | 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
|
631 | { |
|
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
|
632 | 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
|
633 | |
|
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
|
634 | 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
|
635 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
636 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(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
|
637 | |
|
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
|
638 | 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
|
639 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
640 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
641 | 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
|
642 | 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
|
643 | { |
|
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
|
644 | 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
|
645 | |
|
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 | 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
|
647 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
648 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(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
|
649 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
650 | 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
|
651 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
652 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
653 | 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
|
654 | 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
|
655 | { |
|
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
|
656 | 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
|
657 | |
|
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
|
658 | 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
|
659 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
660 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(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
|
661 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
662 | 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
|
663 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
664 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
665 | 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
|
666 | 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
|
667 | { |
|
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
|
668 | 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
|
669 | |
|
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
|
670 | 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
|
671 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
672 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(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
|
673 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
674 | 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
|
675 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
676 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
677 | 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
|
678 | 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
|
679 | { |
|
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
|
680 | 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
|
681 | |
|
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
|
682 | 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
|
683 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
684 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(theme); |
|
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
|
685 | |
|
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
|
686 | 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
|
687 | } |
|
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
|
688 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
689 | 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
|
690 | 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
|
691 | { |
|
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
|
692 | 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
|
693 | |
|
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
|
694 | 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
|
695 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
696 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(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
|
697 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
698 | 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
|
699 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
700 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
701 | 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
|
702 | 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
|
703 | { |
|
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
|
704 | 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
|
705 | |
|
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
|
706 | 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
|
707 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
708 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(theme); |
|
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
|
709 | |
|
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
|
710 | 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
|
711 | } |
|
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
|
712 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
713 | 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
|
714 | 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
|
715 | { |
|
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
|
716 | 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
|
717 | |
|
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
|
718 | 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
|
719 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
720 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(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
|
721 | |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
722 | 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
|
723 | } |
|
41ba956129e0
flushed out blist themes a bit with lots of properties and get methods
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23656
diff
changeset
|
724 | |
|
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
|
725 | /* 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
|
726 | void |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
727 | 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
|
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 | 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
|
730 | |
|
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
|
731 | 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
|
732 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
733 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(theme); |
|
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
|
734 | |
|
26805
30a7f19d9567
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26804
diff
changeset
|
735 | if (priv->bgcolor) |
|
30a7f19d9567
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26804
diff
changeset
|
736 | gdk_color_free(priv->bgcolor); |
|
29295
42c43b85e294
blist theme: Do not treat missing colors as black.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
28304
diff
changeset
|
737 | priv->bgcolor = color ? gdk_color_copy(color) : NULL; |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
738 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
739 | g_object_notify_by_pspec(G_OBJECT(theme), properties[PROP_BACKGROUND_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
|
740 | } |
|
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 | 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
|
743 | 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
|
744 | { |
|
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
|
745 | 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
|
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 | 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
|
748 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
749 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(theme); |
|
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 | priv->opacity = opacity; |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
752 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
753 | g_object_notify_by_pspec(G_OBJECT(theme), properties[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
|
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 | |
|
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 | void |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
757 | 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
|
758 | { |
|
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 | 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
|
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 | 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
|
762 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
763 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(theme); |
|
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
|
764 | |
|
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 | g_free(priv->layout); |
|
35600
a0d221323be1
Box PidginBuddyList, PidginThemeFont, PidginBlistLayout
Ankit Vani <a@nevitus.org>
parents:
35082
diff
changeset
|
766 | priv->layout = pidgin_blist_layout_copy(layout); |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
767 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
768 | g_object_notify_by_pspec(G_OBJECT(theme), properties[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
|
769 | } |
|
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
|
770 | |
|
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
|
771 | void |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
772 | 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
|
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 | 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
|
775 | |
|
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 | 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
|
777 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
778 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(theme); |
|
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
|
779 | |
|
26805
30a7f19d9567
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26804
diff
changeset
|
780 | if (priv->expanded_color) |
|
30a7f19d9567
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26804
diff
changeset
|
781 | gdk_color_free(priv->expanded_color); |
|
29295
42c43b85e294
blist theme: Do not treat missing colors as black.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
28304
diff
changeset
|
782 | priv->expanded_color = color ? gdk_color_copy(color) : NULL; |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
783 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
784 | g_object_notify_by_pspec(G_OBJECT(theme), properties[PROP_EXPANDED_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
|
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_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
|
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 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
794 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(theme); |
|
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
|
795 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
796 | 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
|
797 | priv->expanded = copy_font_and_color(pair); |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
798 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
799 | g_object_notify_by_pspec(G_OBJECT(theme), properties[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
|
800 | } |
|
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
|
801 | |
|
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 | void |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
803 | 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
|
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 | 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
|
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 | 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
|
808 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
809 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(theme); |
|
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
|
810 | |
|
26805
30a7f19d9567
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26804
diff
changeset
|
811 | if (priv->collapsed_color) |
|
30a7f19d9567
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26804
diff
changeset
|
812 | gdk_color_free(priv->collapsed_color); |
|
29295
42c43b85e294
blist theme: Do not treat missing colors as black.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
28304
diff
changeset
|
813 | priv->collapsed_color = color ? gdk_color_copy(color) : NULL; |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
814 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
815 | g_object_notify_by_pspec(G_OBJECT(theme), properties[PROP_COLLAPSED_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
|
816 | } |
|
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
|
817 | |
|
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
|
818 | void |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
819 | 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
|
820 | { |
|
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
|
821 | 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
|
822 | |
|
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
|
823 | 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
|
824 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
825 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(theme); |
|
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
|
826 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
827 | 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
|
828 | priv->collapsed = copy_font_and_color(pair); |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
829 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
830 | g_object_notify_by_pspec(G_OBJECT(theme), properties[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
|
831 | } |
|
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 | void |
|
26785
a4411d5d13d1
PidginBlistTheme now copies all its parameters instead of taking ownership.
Paul Aurich <darkrain42@pidgin.im>
parents:
26784
diff
changeset
|
834 | 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
|
835 | { |
|
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
|
836 | 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
|
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 | 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
|
839 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
840 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(theme); |
|
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
|
841 | |
|
26805
30a7f19d9567
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26804
diff
changeset
|
842 | if (priv->contact_color) |
|
30a7f19d9567
Do a null-check before gdk_color_free, and mark property-names for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26804
diff
changeset
|
843 | gdk_color_free(priv->contact_color); |
|
29295
42c43b85e294
blist theme: Do not treat missing colors as black.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
28304
diff
changeset
|
844 | priv->contact_color = color ? gdk_color_copy(color) : NULL; |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
845 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
846 | g_object_notify_by_pspec(G_OBJECT(theme), properties[PROP_CONTACT_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
|
847 | } |
|
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
|
848 | |
|
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
|
849 | void |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
850 | 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
|
851 | { |
|
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
|
852 | 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
|
853 | |
|
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 | 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
|
855 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
856 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(theme); |
|
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
|
857 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
858 | 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
|
859 | priv->contact = copy_font_and_color(pair); |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
860 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
861 | g_object_notify_by_pspec(G_OBJECT(theme), properties[PROP_CONTACT]); |
|
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
|
862 | } |
|
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 | |
|
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
|
864 | void |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
865 | 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
|
866 | { |
|
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
|
867 | 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
|
868 | |
|
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
|
869 | 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
|
870 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
871 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(theme); |
|
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
|
872 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
873 | 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
|
874 | priv->online = copy_font_and_color(pair); |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
875 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
876 | g_object_notify_by_pspec(G_OBJECT(theme), properties[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
|
877 | } |
|
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
|
878 | |
|
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
|
879 | void |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
880 | 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
|
881 | { |
|
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
|
882 | 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
|
883 | |
|
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
|
884 | 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
|
885 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
886 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(theme); |
|
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
|
887 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
888 | 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
|
889 | priv->away = copy_font_and_color(pair); |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
890 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
891 | g_object_notify_by_pspec(G_OBJECT(theme), properties[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
|
892 | } |
|
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
|
893 | |
|
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
|
894 | void |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
895 | 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
|
896 | { |
|
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
|
897 | 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
|
898 | |
|
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
|
899 | 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
|
900 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
901 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(theme); |
|
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
|
902 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
903 | 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
|
904 | priv->offline = copy_font_and_color(pair); |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
905 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
906 | g_object_notify_by_pspec(G_OBJECT(theme), properties[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
|
907 | } |
|
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
|
908 | |
|
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
|
909 | void |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
910 | 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
|
911 | { |
|
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
|
912 | 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
|
913 | |
|
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
|
914 | 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
|
915 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
916 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(theme); |
|
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
|
917 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
918 | 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
|
919 | priv->idle = copy_font_and_color(pair); |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
920 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
921 | g_object_notify_by_pspec(G_OBJECT(theme), properties[PROP_IDLE]); |
|
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
|
922 | } |
|
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
|
923 | |
|
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
|
924 | void |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
925 | 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
|
926 | { |
|
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
|
927 | 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
|
928 | |
|
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
|
929 | 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
|
930 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
931 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(theme); |
|
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
|
932 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
933 | 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
|
934 | priv->message = copy_font_and_color(pair); |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
935 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
936 | g_object_notify_by_pspec(G_OBJECT(theme), properties[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
|
937 | } |
|
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
|
938 | |
|
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
|
939 | void |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
940 | 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
|
941 | { |
|
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
|
942 | 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
|
943 | |
|
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
|
944 | 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
|
945 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
946 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(theme); |
|
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
|
947 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
948 | 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
|
949 | priv->message_nick_said = copy_font_and_color(pair); |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
950 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
951 | g_object_notify_by_pspec(G_OBJECT(theme), properties[PROP_MESSAGE_NICK_SAID]); |
|
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
|
952 | } |
|
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
|
953 | |
|
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
|
954 | void |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
955 | 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
|
956 | { |
|
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
|
957 | 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
|
958 | |
|
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
|
959 | 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
|
960 | |
|
32538
8eb0383b5e70
All this G_OBJECT() casting is quite unnecessary.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32535
diff
changeset
|
961 | priv = PIDGIN_BLIST_THEME_GET_PRIVATE(theme); |
|
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
|
962 | |
|
26803
d48e945e622f
Several changes:
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26801
diff
changeset
|
963 | 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
|
964 | priv->status = copy_font_and_color(pair); |
|
35060
195dbb3b6432
pidgin: Use G_PARAM_STATIC_STRINGS and ensure g_object_notify is always called
Ankit Vani <a@nevitus.org>
parents:
35058
diff
changeset
|
965 | |
|
35075
3a3c90a0ec07
pidgin: use g_object_notify_by_pspec instead of g_object_notify
Ankit Vani <a@nevitus.org>
parents:
35060
diff
changeset
|
966 | g_object_notify_by_pspec(G_OBJECT(theme), properties[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
|
967 | } |