Mercurial > pidgin
annotate finch/gntplugin.h @ 22750:4040c4ee1f44
Clicking on the buddyicon in the conversation window toggles the size of
the icon between small (32px) and large (96px). The size can also be
changed from the context menu for the icon.
I initially tried to make double-click change the size, instead of a
single-click. But something was going wrong with tab-dragging. If single
clicking is massively unpopular, I can look at getting the double-click
to work.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 26 Apr 2008 23:14:00 +0000 |
parents | c38d72677c8a |
children |
rev | line source |
---|---|
15817 | 1 /** |
2 * @file gntplugin.h GNT Plugins API | |
16194
0f0832c13fcb
Rename the Doxygen group from gntui to finch and define the finch group
Richard Laager <rlaager@wiktel.com>
parents:
15870
diff
changeset
|
3 * @ingroup finch |
20074
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19681
diff
changeset
|
4 */ |
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19681
diff
changeset
|
5 |
6bf32c9e15a7
remove gpl boilerplate from doxygen docs
Sean Egan <seanegan@gmail.com>
parents:
19681
diff
changeset
|
6 /* finch |
15817 | 7 * |
15870
66dff3dfdea6
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@wiktel.com>
parents:
15822
diff
changeset
|
8 * Finch is the legal property of its developers, whose names are too numerous |
15817 | 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 | |
19681
44b4e8bd759b
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16310
diff
changeset
|
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
15817 | 25 */ |
26 #ifndef _GNT_PLUGIN_H | |
27 #define _GNT_PLUGIN_H | |
28 | |
29 #include <gnt.h> | |
30 | |
31 #include <plugin.h> | |
16310
8c89913276b3
Implement the plugin-pref ui using the request api. The preferences for the core plugins can now be modified from Finch. And no new strings.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16194
diff
changeset
|
32 #include <pluginpref.h> |
15817 | 33 |
34 #include <string.h> | |
35 | |
15822 | 36 #include "finch.h" |
15817 | 37 |
38 /********************************************************************** | |
39 * @name GNT Plugins API | |
40 **********************************************************************/ | |
41 /*@{*/ | |
42 | |
22007
c38d72677c8a
Probe for -Wstrict-prototypes to get some more warnings. I then cleaned up
Richard Laager <rlaager@wiktel.com>
parents:
20074
diff
changeset
|
43 typedef GntWidget* (*FinchPluginFrame) (void); |
15817 | 44 |
45 /* Guess where these came from */ | |
15822 | 46 #define FINCH_PLUGIN_TYPE FINCH_UI |
15817 | 47 |
48 /** | |
49 * Decide whether a plugin is a GNT-plugin. | |
50 */ | |
15822 | 51 #define PURPLE_IS_GNT_PLUGIN(plugin) \ |
15817 | 52 ((plugin)->info != NULL && (plugin)->info->ui_info != NULL && \ |
15822 | 53 !strcmp((plugin)->info->ui_requirement, FINCH_PLUGIN_TYPE)) |
15817 | 54 |
55 /** | |
56 * Get the ui-info from GNT-plugins. | |
57 */ | |
15822 | 58 #define FINCH_PLUGIN_UI_INFO(plugin) \ |
15817 | 59 (FinchPluginFrame)((plugin)->info->ui_info) |
60 | |
61 /** | |
62 * Show a list of plugins. | |
63 */ | |
64 void finch_plugins_show_all(void); | |
65 | |
66 /** | |
67 * Save the list of loaded plugins. | |
68 */ | |
69 void finch_plugins_save_loaded(void); | |
70 | |
71 /*@}*/ | |
72 | |
73 #endif |