Fri, 11 Apr 2014 16:23:12 +0530
Merged default branch
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
1 | /* pidgin |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
2 | * |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
3 | * Pidgin is the legal property of its developers, whose names are too numerous |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
5 | * source distribution. |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
6 | * |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
7 | * This program is free software; you can redistribute it and/or modify |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
8 | * it under the terms of the GNU General Public License as published by |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
9 | * the Free Software Foundation; either version 2 of the License, or |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
10 | * (at your option) any later version. |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
11 | * |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
12 | * This program is distributed in the hope that it will be useful, |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
15 | * GNU General Public License for more details. |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
16 | * |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
17 | * You should have received a copy of the GNU General Public License |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
18 | * along with this program; if not, write to the Free Software |
|
35780
fc083eca73a2
Comments: pidgin custom smileys manager
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35731
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
20 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35471
diff
changeset
|
21 | |
|
35718
83486b5d34ab
Drop PidginSmiley, rename gtksmiley to gtksmiley-manager
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35500
diff
changeset
|
22 | #ifndef _PIDGIN_SMILEY_MANAGER_H_ |
|
83486b5d34ab
Drop PidginSmiley, rename gtksmiley to gtksmiley-manager
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35500
diff
changeset
|
23 | #define _PIDGIN_SMILEY_MANAGER_H_ |
|
35780
fc083eca73a2
Comments: pidgin custom smileys manager
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35731
diff
changeset
|
24 | /** |
|
fc083eca73a2
Comments: pidgin custom smileys manager
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35731
diff
changeset
|
25 | * SECTION:gtksmiley-manager |
|
fc083eca73a2
Comments: pidgin custom smileys manager
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35731
diff
changeset
|
26 | * @include:gtksmiley-manager.h |
|
fc083eca73a2
Comments: pidgin custom smileys manager
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35731
diff
changeset
|
27 | * @section_id: pidgin-smiley-manager |
|
fc083eca73a2
Comments: pidgin custom smileys manager
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35731
diff
changeset
|
28 | * @short_description: a UI for user-defined smileys management |
|
fc083eca73a2
Comments: pidgin custom smileys manager
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35731
diff
changeset
|
29 | * @title: Custom smileys manager |
|
fc083eca73a2
Comments: pidgin custom smileys manager
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35731
diff
changeset
|
30 | * |
|
fc083eca73a2
Comments: pidgin custom smileys manager
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35731
diff
changeset
|
31 | * This module provides a GTK+ UI that allows the user adding and removing |
|
fc083eca73a2
Comments: pidgin custom smileys manager
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35731
diff
changeset
|
32 | * custom smileys. See libpurple-smiley-custom section (TODO: how to link this |
|
fc083eca73a2
Comments: pidgin custom smileys manager
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35731
diff
changeset
|
33 | * to libpurple's docs?). |
|
fc083eca73a2
Comments: pidgin custom smileys manager
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35731
diff
changeset
|
34 | */ |
|
23304
3aba02105818
Modified patch from malu to "Add context menu alternative to add received
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22898
diff
changeset
|
35 | |
|
32790
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32438
diff
changeset
|
36 | G_BEGIN_DECLS |
|
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32438
diff
changeset
|
37 | |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
38 | /** |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35414
diff
changeset
|
39 | * pidgin_smiley_manager_show: |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35414
diff
changeset
|
40 | * |
|
35780
fc083eca73a2
Comments: pidgin custom smileys manager
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35731
diff
changeset
|
41 | * Creates and shows the smiley manager window, or requests focus for it, |
|
fc083eca73a2
Comments: pidgin custom smileys manager
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35731
diff
changeset
|
42 | * if it's already opened. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
43 | */ |
|
35785
65ced7f8beaa
Fix regression: saving small WebView images as a custom smileys
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35780
diff
changeset
|
44 | void |
|
65ced7f8beaa
Fix regression: saving small WebView images as a custom smileys
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35780
diff
changeset
|
45 | pidgin_smiley_manager_show(void); |
|
65ced7f8beaa
Fix regression: saving small WebView images as a custom smileys
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35780
diff
changeset
|
46 | |
|
65ced7f8beaa
Fix regression: saving small WebView images as a custom smileys
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35780
diff
changeset
|
47 | /** |
|
65ced7f8beaa
Fix regression: saving small WebView images as a custom smileys
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35780
diff
changeset
|
48 | * pidgin_smiley_manager_add: |
|
65ced7f8beaa
Fix regression: saving small WebView images as a custom smileys
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35780
diff
changeset
|
49 | * @image: the image for a new smiley. |
|
65ced7f8beaa
Fix regression: saving small WebView images as a custom smileys
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35780
diff
changeset
|
50 | * @shortcut: the textual representation, may be %NULL. |
|
65ced7f8beaa
Fix regression: saving small WebView images as a custom smileys
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35780
diff
changeset
|
51 | * |
|
65ced7f8beaa
Fix regression: saving small WebView images as a custom smileys
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35780
diff
changeset
|
52 | * Creates and shows the new dialog for adding a new custom smiley with |
|
65ced7f8beaa
Fix regression: saving small WebView images as a custom smileys
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35780
diff
changeset
|
53 | * provided image. |
|
65ced7f8beaa
Fix regression: saving small WebView images as a custom smileys
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35780
diff
changeset
|
54 | */ |
|
65ced7f8beaa
Fix regression: saving small WebView images as a custom smileys
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35780
diff
changeset
|
55 | void |
|
35812
48c6ee645ca1
Imgstore vs PurpleImage: rip and fix
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35785
diff
changeset
|
56 | pidgin_smiley_manager_add(PurpleImage *image, const gchar *shortcut); |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
57 | |
|
32790
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32438
diff
changeset
|
58 | G_END_DECLS |
|
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32438
diff
changeset
|
59 | |
|
35718
83486b5d34ab
Drop PidginSmiley, rename gtksmiley to gtksmiley-manager
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35500
diff
changeset
|
60 | #endif /* _PIDGIN_SMILEY_MANAGER_H_ */ |