2 * @file gtksmiley.h GTK+ Custom Smiley API
9 * Pidgin is the legal property of its developers, whose names are too numerous
10 * to list here. Please refer to the COPYRIGHT file distributed with this
11 * source distribution.
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
28 #ifndef PIDGIN_GTKSMILEY_H
29 #define PIDGIN_GTKSMILEY_H
33 typedef struct _PidginSmiley PidginSmiley
;
36 * Add a PurpleSmiley to the GtkIMHtmlSmiley's list to be able to use it
39 * @param smiley The smiley to be added.
41 void pidgin_smiley_add_to_list(PurpleSmiley
*smiley
);
44 * Delete a PurpleSmiley from the GtkIMHtmlSmiley's list
46 * @param smiley The smiley to be deleted.
48 void pidgin_smiley_del_from_list(PurpleSmiley
*smiley
);
51 * Load the GtkIMHtml list
53 void pidgin_smileys_init(void);
56 * Uninit the GtkIMHtml list
58 void pidgin_smileys_uninit(void);
61 * Returns a GSList with the GtkIMHtmlSmiley of each custom smiley
63 * @constreturn A GtkIMHmlSmiley list
65 GSList
*pidgin_smileys_get_all(void);
67 /******************************************************************************
69 *****************************************************************************/
71 * Displays the Smiley Manager Window
73 void pidgin_smiley_manager_show(void);
76 * Shows an editor for a smiley.
78 * @param widget The parent widget to be linked or @c NULL
79 * @param smiley The PurpleSmiley to be edited, or @c NULL for a new smiley
80 * @return The smiley add dialog
82 * @see pidgin_smiley_editor_set_shortcut
83 * @see pidgin_smiley_editor_set_image
85 PidginSmiley
*pidgin_smiley_edit(GtkWidget
*widget
, PurpleSmiley
*smiley
);
88 * Set the shortcut in a smiley add dialog
90 * @param editor A smiley editor dialog (created by pidgin_smiley_edit)
91 * @param shortcut The shortcut to set
93 void pidgin_smiley_editor_set_shortcut(PidginSmiley
*editor
, const gchar
*shortcut
);
96 * Set the image in a smiley add dialog
98 * @param editor A smiley editor dialog
99 * @param image A GdkPixbuf image
101 void pidgin_smiley_editor_set_image(PidginSmiley
*editor
, GdkPixbuf
*image
);
104 * Sets the image data in a smiley add dialog
106 * @param editor A smiley editor dialog
107 * @param data A pointer to smiley's data
108 * @param datasize The size of smiley's data
112 void pidgin_smiley_editor_set_data(PidginSmiley
*editor
, gpointer data
, gsize datasize
);
114 #endif /* PIDGIN_GTKSMILEY_H */