comparison pidgin/gtksmiley.h @ 23124:b30f54a72031

propagate from branch 'im.pidgin.pidgin' (head 8ab7bcf180c3d8cc09b9d82060417bcf3fcfff95) to branch 'im.pidgin.pidgin.custom_smiley' (head aeaf4e99a407c48978426a7866b921b380471dad)
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 31 Mar 2008 21:04:51 +0000
parents 02eda4bd2b22
children b70b4108799e
comparison
equal deleted inserted replaced
22578:0998ae2e4838 23124:b30f54a72031
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_*/