Mercurial > pidgin.yaz
comparison pidgin/gtksmiley.h @ 23163:99ef50c8da91
Modified patch from malu to "Add context menu alternative to add received
custom smiley". Closes #5855.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 21 May 2008 17:56:20 +0000 |
parents | b70b4108799e |
children | f62c5b302b91 |
comparison
equal
deleted
inserted
replaced
23162:e0e57b83b359 | 23163:99ef50c8da91 |
---|---|
1 /** | 1 /** |
2 * @file gtksmiley.h GTK+ Custom Smiley API | 2 * @file gtksmiley.h GTK+ Custom Smiley API |
3 * @ingroup pidgin | 3 * @ingroup pidgin |
4 * @since 2.5.0 | |
4 */ | 5 */ |
5 | 6 |
6 /* pidgin | 7 /* pidgin |
7 * | 8 * |
8 * Pidgin is the legal property of its developers, whose names are too numerous | 9 * Pidgin is the legal property of its developers, whose names are too numerous |
26 | 27 |
27 #ifndef _PIDGIN_GTKSMILEY_H_ | 28 #ifndef _PIDGIN_GTKSMILEY_H_ |
28 #define _PIDGIN_GTKSMILEY_H_ | 29 #define _PIDGIN_GTKSMILEY_H_ |
29 | 30 |
30 #include "smiley.h" | 31 #include "smiley.h" |
32 | |
33 typedef struct _PidginSmiley PidginSmiley; | |
31 | 34 |
32 /** | 35 /** |
33 * Add a PurpleSmiley to the GtkIMHtmlSmiley's list to be able to use it | 36 * Add a PurpleSmiley to the GtkIMHtmlSmiley's list to be able to use it |
34 * in pidgin | 37 * in pidgin |
35 * | 38 * |
70 void pidgin_smiley_manager_show(void); | 73 void pidgin_smiley_manager_show(void); |
71 | 74 |
72 /** | 75 /** |
73 * Shows an editor for a smiley. | 76 * Shows an editor for a smiley. |
74 * | 77 * |
75 * @param widget The parent widget to be linked or @c NULL | 78 * @param widget The parent widget to be linked or @c NULL |
76 * @param smiley The PurpleSmiley to be edited, or @c NULL for a new smiley | 79 * @param smiley The PurpleSmiley to be edited, or @c NULL for a new smiley |
80 * @return The smiley add dialog | |
81 * | |
82 * @see pidgin_smiley_editor_set_shortcut | |
83 * @see pidgin_smiley_editor_set_image | |
77 */ | 84 */ |
78 void pidgin_smiley_edit(GtkWidget *widget, PurpleSmiley *smiley); | 85 PidginSmiley *pidgin_smiley_edit(GtkWidget *widget, PurpleSmiley *smiley); |
86 | |
87 /** | |
88 * Set the shortcut in a smiley add dialog | |
89 * | |
90 * @param editor A smiley editor dialog (created by pidgin_smiley_edit) | |
91 * @param shortcut The shortcut to set | |
92 */ | |
93 void pidgin_smiley_editor_set_shortcut(PidginSmiley *editor, const gchar *shortcut); | |
94 | |
95 /** | |
96 * Set the image in a smiley add dialog | |
97 * | |
98 * @param editor A smiley editor dialog | |
99 * @param image A GdkPixbuf image | |
100 */ | |
101 void pidgin_smiley_editor_set_image(PidginSmiley *editor, GdkPixbuf *image); | |
79 | 102 |
80 #endif /* _PIDGIN_GTKSMILEY_H_*/ | 103 #endif /* _PIDGIN_GTKSMILEY_H_*/ |