comparison pidgin/gtksmiley.h @ 22874:02eda4bd2b22

Apply the custom smiley patches from #1187, from Jorge Villaseo (Masca) and Mauro Srgio Ferreira Brasil. I have not applied the bits on MSN yet. I will have to look at it later, but I would rather someone else more familiar with the MSN code look at it first. I changed some bits of the applied patch (whitespacing, camelcasing etc.), and the bit that required a major version bump (in gtkthemes.h). There are a few more things that need to be done for this to be merged back to i.p.p.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 19 Feb 2008 19:41:56 +0000
parents
children b70b4108799e
comparison
equal deleted inserted replaced
22310:f463d54e606b 22874:02eda4bd2b22
1 /**
2 * @file gtksmiley.h GTK+ Custom Smiley API
3 * @ingroup pidgin
4 */
5
6 /* pidgin
7 *
8 * Pidgin is the legal property of its developers, whose names are too numerous
9 * to list here. Please refer to the COPYRIGHT file distributed with this
10 * source distribution.
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
25 */
26
27 #ifndef _PIDGIN_GTKSMILEY_H_
28 #define _PIDGIN_GTKSMILEY_H_
29
30 #include "smiley.h"
31
32 /**
33 * Add a PurpleSmiley to the GtkIMHtmlSmiley's list to be able to use it
34 * in pidgin
35 *
36 * @param smiley The smiley to be added.
37 */
38 void pidgin_smiley_add_to_list(PurpleSmiley *smiley);
39
40 /**
41 * Delete a PurpleSmiley from the GtkIMHtmlSmiley's list
42 *
43 * @param smiley The smiley to be deleted.
44 */
45 void pidgin_smiley_del_from_list(PurpleSmiley *smiley);
46
47 /**
48 * Load the GtkIMHtml list
49 */
50 void pidgin_smileys_init(void);
51
52 /**
53 * Uninit the GtkIMHtml list
54 */
55 void pidgin_smileys_uninit(void);
56
57 /**
58 * Returns a GSList with the GtkIMHtmlSmiley of each custom smiley
59 *
60 * @constreturn A GtkIMHmlSmiley list
61 */
62 GSList* pidgin_smileys_get_all(void);
63
64 /******************************************************************************
65 * Smiley Manager
66 *****************************************************************************/
67 /**
68 * Displays the Smiley Manager Window
69 */
70 void pidgin_smiley_manager_show(void);
71
72 /**
73 * Displays the "Add smiley" Dialog Box
74 *
75 * @param widget The parent widget to be linked
76 */
77 void pidgin_smiley_add(GtkWidget *widget);
78
79 #endif /* _PIDGIN_GTKSMILEY_H_*/