Mercurial > pidgin.yaz
annotate pidgin/gtkconv-theme.h @ 32727:7ccd24d49904
The variant property is not construct-only.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sat, 08 Oct 2011 02:37:14 +0000 |
parents | 90264301600f |
children |
rev | line source |
---|---|
32619
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
1 /** |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
2 * @file gtkconv-theme.h Pidgin Conversation Theme Class API |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
3 */ |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
4 |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
5 /* pidgin |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
6 * |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
7 * Pidgin is the legal property of its developers, whose names are too numerous |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
8 * to list here. Please refer to the COPYRIGHT file distributed with this |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
9 * source distribution. |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
10 * |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
11 * This program is free software; you can redistribute it and/or modify |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
12 * it under the terms of the GNU General Public License as published by |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
13 * the Free Software Foundation; either version 2 of the License, or |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
14 * (at your option) any later version. |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
15 * |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
16 * This program is distributed in the hope that it will be useful, |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
19 * GNU General Public License for more details. |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
20 * |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
21 * You should have received a copy of the GNU General Public License |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
22 * along with this program; if not, write to the Free Software |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
24 */ |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
25 |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
26 #ifndef PIDGIN_CONV_THEME_H |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
27 #define PIDGIN_CONV_THEME_H |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
28 |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
29 #include <glib.h> |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
30 #include <glib-object.h> |
32629
dc835fb3dcd3
Copy theme-to-conversation loading stuff into the GObject code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32623
diff
changeset
|
31 #include "conversation.h" |
32619
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
32 #include "theme.h" |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
33 |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
34 /** |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
35 * extends PurpleTheme (theme.h) |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
36 * A pidgin icon theme. |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
37 * This object represents a Pidgin icon theme. |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
38 * |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
39 * PidginConvTheme is a PurpleTheme Object. |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
40 */ |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
41 typedef struct _PidginConvTheme PidginConvTheme; |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
42 typedef struct _PidginConvThemeClass PidginConvThemeClass; |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
43 |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
44 #define PIDGIN_TYPE_CONV_THEME (pidgin_conversation_theme_get_type ()) |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
45 #define PIDGIN_CONV_THEME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PIDGIN_TYPE_CONV_THEME, PidginConvTheme)) |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
46 #define PIDGIN_CONV_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PIDGIN_TYPE_CONV_THEME, PidginConvThemeClass)) |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
47 #define PIDGIN_IS_CONV_THEME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIDGIN_TYPE_CONV_THEME)) |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
48 #define PIDGIN_IS_CONV_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PIDGIN_TYPE_CONV_THEME)) |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
49 #define PIDGIN_CONV_THEME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PIDGIN_TYPE_CONV_THEME, PidginConvThemeClass)) |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
50 |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
51 struct _PidginConvTheme |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
52 { |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
53 PurpleTheme parent; |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
54 }; |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
55 |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
56 struct _PidginConvThemeClass |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
57 { |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
58 PurpleThemeClass parent_class; |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
59 }; |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
60 |
32654
3294e08d7466
Add an accessor for template data. Also, fix some fallbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32652
diff
changeset
|
61 typedef enum { |
3294e08d7466
Add an accessor for template data. Also, fix some fallbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32652
diff
changeset
|
62 PIDGIN_CONVERSATION_THEME_TEMPLATE_MAIN, |
3294e08d7466
Add an accessor for template data. Also, fix some fallbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32652
diff
changeset
|
63 PIDGIN_CONVERSATION_THEME_TEMPLATE_HEADER, |
3294e08d7466
Add an accessor for template data. Also, fix some fallbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32652
diff
changeset
|
64 PIDGIN_CONVERSATION_THEME_TEMPLATE_FOOTER, |
3294e08d7466
Add an accessor for template data. Also, fix some fallbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32652
diff
changeset
|
65 PIDGIN_CONVERSATION_THEME_TEMPLATE_TOPIC, |
3294e08d7466
Add an accessor for template data. Also, fix some fallbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32652
diff
changeset
|
66 PIDGIN_CONVERSATION_THEME_TEMPLATE_STATUS, |
3294e08d7466
Add an accessor for template data. Also, fix some fallbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32652
diff
changeset
|
67 PIDGIN_CONVERSATION_THEME_TEMPLATE_CONTENT, |
3294e08d7466
Add an accessor for template data. Also, fix some fallbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32652
diff
changeset
|
68 PIDGIN_CONVERSATION_THEME_TEMPLATE_INCOMING_CONTENT, |
3294e08d7466
Add an accessor for template data. Also, fix some fallbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32652
diff
changeset
|
69 PIDGIN_CONVERSATION_THEME_TEMPLATE_INCOMING_NEXT_CONTENT, |
3294e08d7466
Add an accessor for template data. Also, fix some fallbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32652
diff
changeset
|
70 PIDGIN_CONVERSATION_THEME_TEMPLATE_INCOMING_CONTEXT, |
3294e08d7466
Add an accessor for template data. Also, fix some fallbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32652
diff
changeset
|
71 PIDGIN_CONVERSATION_THEME_TEMPLATE_INCOMING_NEXT_CONTEXT, |
3294e08d7466
Add an accessor for template data. Also, fix some fallbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32652
diff
changeset
|
72 PIDGIN_CONVERSATION_THEME_TEMPLATE_OUTGOING_CONTENT, |
3294e08d7466
Add an accessor for template data. Also, fix some fallbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32652
diff
changeset
|
73 PIDGIN_CONVERSATION_THEME_TEMPLATE_OUTGOING_NEXT_CONTENT, |
3294e08d7466
Add an accessor for template data. Also, fix some fallbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32652
diff
changeset
|
74 PIDGIN_CONVERSATION_THEME_TEMPLATE_OUTGOING_CONTEXT, |
32657
ceae9fb7ae0b
Add template lookup for 'basestyle' CSS.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32656
diff
changeset
|
75 PIDGIN_CONVERSATION_THEME_TEMPLATE_OUTGOING_NEXT_CONTEXT, |
ceae9fb7ae0b
Add template lookup for 'basestyle' CSS.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32656
diff
changeset
|
76 PIDGIN_CONVERSATION_THEME_TEMPLATE_BASESTYLE_CSS |
32654
3294e08d7466
Add an accessor for template data. Also, fix some fallbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32652
diff
changeset
|
77 |
3294e08d7466
Add an accessor for template data. Also, fix some fallbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32652
diff
changeset
|
78 } PidginConvThemeTemplateType; |
3294e08d7466
Add an accessor for template data. Also, fix some fallbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32652
diff
changeset
|
79 |
32619
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
80 /**************************************************************************/ |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
81 /** @name Pidgin Conversation Theme API */ |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
82 /**************************************************************************/ |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
83 G_BEGIN_DECLS |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
84 |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
85 /** |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
86 * GObject foo. |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
87 * @internal. |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
88 */ |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
89 GType pidgin_conversation_theme_get_type(void); |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
90 |
32652
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
91 /** |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
92 * Get the Info.plist hash table from a conversation theme. |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
93 * |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
94 * @param theme The conversation theme |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
95 * |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
96 * @return The hash table. Keys are strings as outlined for message styles, |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
97 * values are GValue*s. This is an internal structure. Take a ref if |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
98 * necessary, but don't destroy it yourself. |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
99 */ |
32630
2ca29cd62db8
Move conversation theme loading into the PidginConvThemeLoader GObject
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32629
diff
changeset
|
100 const GHashTable *pidgin_conversation_theme_get_info(const PidginConvTheme *theme); |
32652
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
101 |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
102 /** |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
103 * Set the Info.plist hash table for a conversation theme. |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
104 * |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
105 * @param theme The conversation theme |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
106 * @param info The new hash table. The theme will take ownership of this hash |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
107 * table. Do not use it yourself afterwards with holding a ref. |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
108 * For key and value specifications, @see pidgin_conversation_theme_get_info. |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
109 * |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
110 */ |
32630
2ca29cd62db8
Move conversation theme loading into the PidginConvThemeLoader GObject
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32629
diff
changeset
|
111 void pidgin_conversation_theme_set_info(PidginConvTheme *theme, GHashTable *info); |
2ca29cd62db8
Move conversation theme loading into the PidginConvThemeLoader GObject
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32629
diff
changeset
|
112 |
32655
4d85e218a52e
Document things.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32654
diff
changeset
|
113 /** |
32656
79d48418ba0b
Add a function for lookup of Info.plist entries.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32655
diff
changeset
|
114 * Lookup a key in a theme |
79d48418ba0b
Add a function for lookup of Info.plist entries.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32655
diff
changeset
|
115 * |
79d48418ba0b
Add a function for lookup of Info.plist entries.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32655
diff
changeset
|
116 * @param theme The conversation theme |
79d48418ba0b
Add a function for lookup of Info.plist entries.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32655
diff
changeset
|
117 * @param key The key to find |
79d48418ba0b
Add a function for lookup of Info.plist entries.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32655
diff
changeset
|
118 * @param specific Whether to search variant-specific keys |
79d48418ba0b
Add a function for lookup of Info.plist entries.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32655
diff
changeset
|
119 * |
79d48418ba0b
Add a function for lookup of Info.plist entries.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32655
diff
changeset
|
120 * @return The key information. If @a specific is @c TRUE, then keys are first |
79d48418ba0b
Add a function for lookup of Info.plist entries.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32655
diff
changeset
|
121 * searched by variant, then by general ones. Otherwise, only general |
79d48418ba0b
Add a function for lookup of Info.plist entries.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32655
diff
changeset
|
122 * key values are returned. |
79d48418ba0b
Add a function for lookup of Info.plist entries.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32655
diff
changeset
|
123 */ |
79d48418ba0b
Add a function for lookup of Info.plist entries.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32655
diff
changeset
|
124 const GValue *pidgin_conversation_theme_lookup(PidginConvTheme *theme, const char *key, gboolean specific); |
79d48418ba0b
Add a function for lookup of Info.plist entries.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32655
diff
changeset
|
125 |
79d48418ba0b
Add a function for lookup of Info.plist entries.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32655
diff
changeset
|
126 /** |
32655
4d85e218a52e
Document things.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32654
diff
changeset
|
127 * Get the template data from a conversation theme. |
4d85e218a52e
Document things.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32654
diff
changeset
|
128 * |
4d85e218a52e
Document things.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32654
diff
changeset
|
129 * @param theme The conversation theme |
4d85e218a52e
Document things.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32654
diff
changeset
|
130 * @param type The type of template data |
4d85e218a52e
Document things.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32654
diff
changeset
|
131 * |
4d85e218a52e
Document things.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32654
diff
changeset
|
132 * @return The template data requested. Fallback is made as required by styles. |
4d85e218a52e
Document things.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32654
diff
changeset
|
133 * Subsequent calls to this function will return cached values. |
4d85e218a52e
Document things.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32654
diff
changeset
|
134 */ |
32654
3294e08d7466
Add an accessor for template data. Also, fix some fallbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32652
diff
changeset
|
135 const char *pidgin_conversation_theme_get_template(PidginConvTheme *theme, PidginConvThemeTemplateType type); |
3294e08d7466
Add an accessor for template data. Also, fix some fallbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32652
diff
changeset
|
136 |
32652
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
137 /** |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
138 * Add an available variant name to a conversation theme. |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
139 * |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
140 * @param theme The conversation theme |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
141 * @param variant The name of the variant |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
142 * |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
143 * @Note The conversation theme will take ownership of the variant name string. |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
144 * This function should normally only be called by the theme loader. |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
145 */ |
32647
3e27c95ab8e6
Fix a leak. pidgin_conversation_theme_add_variant should only be
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32645
diff
changeset
|
146 void pidgin_conversation_theme_add_variant(PidginConvTheme *theme, char *variant); |
32652
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
147 |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
148 /** |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
149 * Get the currently set variant name for a conversation theme. |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
150 * |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
151 * @param theme The conversation theme |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
152 * |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
153 * @return The current variant name. |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
154 */ |
32645
a7a6770f26e2
Load the list of variants when building the theme.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32630
diff
changeset
|
155 const char *pidgin_conversation_theme_get_variant(PidginConvTheme *theme); |
32652
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
156 |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
157 /** |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
158 * Set the variant name for a conversation theme. |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
159 * |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
160 * @param theme The conversation theme |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
161 * @param variant The name of the variant |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
162 * |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
163 */ |
32645
a7a6770f26e2
Load the list of variants when building the theme.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32630
diff
changeset
|
164 void pidgin_conversation_theme_set_variant(PidginConvTheme *theme, const char *variant); |
32652
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
165 |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
166 /** |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
167 * Get a list of available variants for a conversation theme. |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
168 * |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
169 * @param theme The conversation theme |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
170 * |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
171 * @return The list of variants. This GList and the string data are owned by |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
172 * the theme and should not be freed by the caller. |
c26d13e7f52b
Add documentation for conversation themes.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32650
diff
changeset
|
173 */ |
32645
a7a6770f26e2
Load the list of variants when building the theme.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32630
diff
changeset
|
174 const GList *pidgin_conversation_theme_get_variants(PidginConvTheme *theme); |
a7a6770f26e2
Load the list of variants when building the theme.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32630
diff
changeset
|
175 |
32658
90264301600f
Apply conversation theme when opening the GTK conversation. All the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
176 /** |
90264301600f
Apply conversation theme when opening the GTK conversation. All the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
177 * Get the path to the template HTML file. |
90264301600f
Apply conversation theme when opening the GTK conversation. All the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
178 * |
90264301600f
Apply conversation theme when opening the GTK conversation. All the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
179 * @param theme The conversation theme |
90264301600f
Apply conversation theme when opening the GTK conversation. All the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
180 * |
90264301600f
Apply conversation theme when opening the GTK conversation. All the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
181 * @return The path to the HTML file. |
90264301600f
Apply conversation theme when opening the GTK conversation. All the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
182 */ |
90264301600f
Apply conversation theme when opening the GTK conversation. All the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
183 char *pidgin_conversation_theme_get_template_path(PidginConvTheme *theme); |
32623
2e8c905a5e74
Attempt to move the message style object from the plugin into the new
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32619
diff
changeset
|
184 |
32658
90264301600f
Apply conversation theme when opening the GTK conversation. All the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
185 /** |
90264301600f
Apply conversation theme when opening the GTK conversation. All the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
186 * Get the path to the current variant CSS file. |
90264301600f
Apply conversation theme when opening the GTK conversation. All the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
187 * |
90264301600f
Apply conversation theme when opening the GTK conversation. All the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
188 * @param theme The conversation theme |
90264301600f
Apply conversation theme when opening the GTK conversation. All the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
189 * |
90264301600f
Apply conversation theme when opening the GTK conversation. All the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
190 * @return The path to the CSS file. |
90264301600f
Apply conversation theme when opening the GTK conversation. All the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
191 */ |
90264301600f
Apply conversation theme when opening the GTK conversation. All the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32657
diff
changeset
|
192 char *pidgin_conversation_theme_get_css_path(PidginConvTheme *theme); |
32629
dc835fb3dcd3
Copy theme-to-conversation loading stuff into the GObject code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32623
diff
changeset
|
193 |
32619
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
194 G_END_DECLS |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
195 #endif /* PIDGIN_CONV_THEME_H */ |
17c27a527004
Add some boilerplate Conversation theme GObjects. These don't do
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
196 |