annotate plugins/gtk-signals-test.c @ 13671:cafb9a4b206f

[gaim-migrate @ 16073] Kevin pointed out that the libgadu files aren't in EXTRA_DIST, which is necessary for building on Windows. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 20 Apr 2006 05:51:37 +0000
parents f09c6e8df82c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9609
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
1 /*
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
2 * Signals test plugin.
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
3 *
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
4 * Copyright (C) 2003 Christian Hammond.
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
5 *
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
6 * This program is free software; you can redistribute it and/or
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
7 * modify it under the terms of the GNU General Public License as
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
8 * published by the Free Software Foundation; either version 2 of the
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
9 * License, or (at your option) any later version.
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
10 *
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
11 * This program is distributed in the hope that it will be useful, but
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
14 * General Public License for more details.
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
15 *
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
16 * You should have received a copy of the GNU General Public License
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
17 * along with this program; if not, write to the Free Software
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
19 * 02111-1307, USA.
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
20 */
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
21 #define GTK_SIGNAL_TEST_PLUGIN_ID "gtk-signals-test"
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
22
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
23 #include <gtk/gtk.h>
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
24
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
25 #include "internal.h"
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
26 #include "debug.h"
9954
a9fb4493ae22 [gaim-migrate @ 10851]
Nathan Walp <nwalp@pidgin.im>
parents: 9609
diff changeset
27 #include "version.h"
9609
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
28
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
29 #include "gtkaccount.h"
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
30 #include "gtkblist.h"
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
31 #include "gtkconv.h"
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
32 #include "gtkplugin.h"
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
33
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
34 /**************************************************************************
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
35 * Account subsystem signal callbacks
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
36 **************************************************************************/
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
37 static void
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
38 account_modified_cb(GaimAccount *account, void *data) {
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
39 gaim_debug_info("gtk-signal-test", "account modified cb\n");
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
40 }
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
41
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
42 /**************************************************************************
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
43 * Buddy List subsystem signal callbacks
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
44 **************************************************************************/
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
45 static void
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
46 blist_created_cb(GaimBuddyList *blist, void *data) {
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
47 gaim_debug_info("gtk-signal-test", "buddy list created\n");
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
48 }
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
49
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
50 static void
12898
e3b4e6787dff [gaim-migrate @ 15251]
Richard Laager <rlaager@wiktel.com>
parents: 12639
diff changeset
51 blist_drawing_tooltip_cb(GaimBlistNode *node, GString *str, gboolean full, void *data) {
9609
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
52 gaim_debug_info("gtk-signal-test", "drawing tooltip cb\n");
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
53 }
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
54
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
55 /**************************************************************************
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
56 * Conversation subsystem signal callbacks
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
57 **************************************************************************/
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
58 static void
11848
434181b96f44 [gaim-migrate @ 14139]
Gary Kramlich <grim@reaperworld.com>
parents: 11447
diff changeset
59 conversation_dragging_cb(GaimGtkWindow *source, GaimGtkWindow *destination) {
11447
ef6e94bdda08 [gaim-migrate @ 13686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11256
diff changeset
60 gaim_debug_info("gtk-signal-test", "conversation dragging cb\n");
9609
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
61 }
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
62
12604
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
63 static gboolean
13233
f09c6e8df82c [gaim-migrate @ 15598]
Richard Laager <rlaager@wiktel.com>
parents: 12898
diff changeset
64 displaying_im_msg_cb(GaimAccount *account, const char *who, char **buffer,
f09c6e8df82c [gaim-migrate @ 15598]
Richard Laager <rlaager@wiktel.com>
parents: 12898
diff changeset
65 GaimConversation *conv, GaimMessageFlags flags, void *data)
12604
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
66 {
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
67 gaim_debug_misc("gtk-signals test", "displaying-im-msg (%s, %s)\n",
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
68 gaim_conversation_get_name(conv), *buffer);
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
69
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
70 return FALSE;
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
71 }
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
72
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
73 static void
13233
f09c6e8df82c [gaim-migrate @ 15598]
Richard Laager <rlaager@wiktel.com>
parents: 12898
diff changeset
74 displayed_im_msg_cb(GaimAccount *account, const char *who, const char *buffer,
f09c6e8df82c [gaim-migrate @ 15598]
Richard Laager <rlaager@wiktel.com>
parents: 12898
diff changeset
75 GaimConversation *conv, GaimMessageFlags flags, void *data)
12604
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
76 {
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
77 gaim_debug_misc("gtk-signals test", "displayed-im-msg (%s, %s)\n",
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
78 gaim_conversation_get_name(conv), buffer);
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
79 }
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
80
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
81 static gboolean
13233
f09c6e8df82c [gaim-migrate @ 15598]
Richard Laager <rlaager@wiktel.com>
parents: 12898
diff changeset
82 displaying_chat_msg_cb(GaimAccount *account, const char *who, char **buffer,
f09c6e8df82c [gaim-migrate @ 15598]
Richard Laager <rlaager@wiktel.com>
parents: 12898
diff changeset
83 GaimConversation *conv, GaimMessageFlags flags, void *data)
12604
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
84 {
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
85 gaim_debug_misc("gtk-signals test", "displaying-chat-msg (%s, %s)\n",
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
86 gaim_conversation_get_name(conv), *buffer);
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
87
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
88 return FALSE;
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
89 }
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
90
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
91 static void
13233
f09c6e8df82c [gaim-migrate @ 15598]
Richard Laager <rlaager@wiktel.com>
parents: 12898
diff changeset
92 displayed_chat_msg_cb(GaimAccount *account, const char *who, const char *buffer,
f09c6e8df82c [gaim-migrate @ 15598]
Richard Laager <rlaager@wiktel.com>
parents: 12898
diff changeset
93 GaimConversation *conv, GaimMessageFlags flags, void *data)
12604
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
94 {
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
95 gaim_debug_misc("gtk-signals test", "displayed-chat-msg (%s, %s)\n",
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
96 gaim_conversation_get_name(conv), buffer);
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
97 }
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
98
12639
366326fa9cb4 [gaim-migrate @ 14975]
Richard Laager <rlaager@wiktel.com>
parents: 12604
diff changeset
99 static void
366326fa9cb4 [gaim-migrate @ 14975]
Richard Laager <rlaager@wiktel.com>
parents: 12604
diff changeset
100 conversation_switched_cb(GaimConversation *conv, void *data)
366326fa9cb4 [gaim-migrate @ 14975]
Richard Laager <rlaager@wiktel.com>
parents: 12604
diff changeset
101 {
366326fa9cb4 [gaim-migrate @ 14975]
Richard Laager <rlaager@wiktel.com>
parents: 12604
diff changeset
102 gaim_debug_misc("gtk-signals test", "conversation-switched (%s)\n",
366326fa9cb4 [gaim-migrate @ 14975]
Richard Laager <rlaager@wiktel.com>
parents: 12604
diff changeset
103 gaim_conversation_get_name(conv));
366326fa9cb4 [gaim-migrate @ 14975]
Richard Laager <rlaager@wiktel.com>
parents: 12604
diff changeset
104 }
366326fa9cb4 [gaim-migrate @ 14975]
Richard Laager <rlaager@wiktel.com>
parents: 12604
diff changeset
105
9609
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
106 /**************************************************************************
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
107 * Plugin stuff
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
108 **************************************************************************/
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
109 static gboolean
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
110 plugin_load(GaimPlugin *plugin)
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
111 {
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
112 void *accounts_handle = gaim_gtk_account_get_handle();
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
113 void *blist_handle = gaim_gtk_blist_get_handle();
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
114 void *conv_handle = gaim_gtk_conversations_get_handle();
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
115
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
116 /* Accounts subsystem signals */
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
117 gaim_signal_connect(accounts_handle, "account-modified",
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
118 plugin, GAIM_CALLBACK(account_modified_cb), NULL);
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
119
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
120 /* Buddy List subsystem signals */
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
121 gaim_signal_connect(blist_handle, "gtkblist-created",
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
122 plugin, GAIM_CALLBACK(blist_created_cb), NULL);
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
123 gaim_signal_connect(blist_handle, "drawing-tooltip",
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
124 plugin, GAIM_CALLBACK(blist_drawing_tooltip_cb), NULL);
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
125
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
126 /* Conversations subsystem signals */
11447
ef6e94bdda08 [gaim-migrate @ 13686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11256
diff changeset
127 gaim_signal_connect(conv_handle, "conversation-dragging",
ef6e94bdda08 [gaim-migrate @ 13686]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11256
diff changeset
128 plugin, GAIM_CALLBACK(conversation_dragging_cb), NULL);
12604
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
129 gaim_signal_connect(conv_handle, "displaying-im-msg",
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
130 plugin, GAIM_CALLBACK(displaying_im_msg_cb), NULL);
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
131 gaim_signal_connect(conv_handle, "displayed-im-msg",
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
132 plugin, GAIM_CALLBACK(displayed_im_msg_cb), NULL);
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
133 gaim_signal_connect(conv_handle, "displaying-chat-msg",
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
134 plugin, GAIM_CALLBACK(displaying_chat_msg_cb), NULL);
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
135 gaim_signal_connect(conv_handle, "displayed-chat-msg",
71299d63801d [gaim-migrate @ 14939]
Richard Laager <rlaager@wiktel.com>
parents: 11848
diff changeset
136 plugin, GAIM_CALLBACK(displayed_chat_msg_cb), NULL);
12639
366326fa9cb4 [gaim-migrate @ 14975]
Richard Laager <rlaager@wiktel.com>
parents: 12604
diff changeset
137 gaim_signal_connect(conv_handle, "conversation-switched",
366326fa9cb4 [gaim-migrate @ 14975]
Richard Laager <rlaager@wiktel.com>
parents: 12604
diff changeset
138 plugin, GAIM_CALLBACK(conversation_switched_cb), NULL);
9609
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
139
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
140 return TRUE;
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
141 }
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
142
11033
50224ac8184d [gaim-migrate @ 12919]
Etan Reisner <pidgin@unreliablesource.net>
parents: 9954
diff changeset
143 static gboolean
11256
bb0d7b719af2 [gaim-migrate @ 13430]
Gary Kramlich <grim@reaperworld.com>
parents: 11033
diff changeset
144 plugin_unload(GaimPlugin *plugin) {
bb0d7b719af2 [gaim-migrate @ 13430]
Gary Kramlich <grim@reaperworld.com>
parents: 11033
diff changeset
145 return TRUE;
11033
50224ac8184d [gaim-migrate @ 12919]
Etan Reisner <pidgin@unreliablesource.net>
parents: 9954
diff changeset
146 }
50224ac8184d [gaim-migrate @ 12919]
Etan Reisner <pidgin@unreliablesource.net>
parents: 9954
diff changeset
147
9609
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
148 static GaimPluginInfo info =
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
149 {
9954
a9fb4493ae22 [gaim-migrate @ 10851]
Nathan Walp <nwalp@pidgin.im>
parents: 9609
diff changeset
150 GAIM_PLUGIN_MAGIC,
a9fb4493ae22 [gaim-migrate @ 10851]
Nathan Walp <nwalp@pidgin.im>
parents: 9609
diff changeset
151 GAIM_MAJOR_VERSION,
a9fb4493ae22 [gaim-migrate @ 10851]
Nathan Walp <nwalp@pidgin.im>
parents: 9609
diff changeset
152 GAIM_MINOR_VERSION,
9609
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
153 GAIM_PLUGIN_STANDARD, /**< type */
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
154 GAIM_GTK_PLUGIN_TYPE, /**< ui_requirement */
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
155 0, /**< flags */
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
156 NULL, /**< dependencies */
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
157 GAIM_PRIORITY_DEFAULT, /**< priority */
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
158
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
159 GTK_SIGNAL_TEST_PLUGIN_ID, /**< id */
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
160 N_("GTK Signals Test"), /**< name */
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
161 VERSION, /**< version */
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
162 /** summary */
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
163 N_("Test to see that all ui signals are working properly."),
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
164 /** description */
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
165 N_("Test to see that all ui signals are working properly."),
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
166 "Gary Kramlich <amc_grim@users.sf.net>", /**< author */
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
167 GAIM_WEBSITE, /**< homepage */
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
168
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
169 plugin_load, /**< load */
11033
50224ac8184d [gaim-migrate @ 12919]
Etan Reisner <pidgin@unreliablesource.net>
parents: 9954
diff changeset
170 plugin_unload, /**< unload */
9609
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
171 NULL, /**< destroy */
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
172
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
173 NULL, /**< ui_info */
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
174 NULL, /**< extra_info */
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
175 NULL,
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
176 NULL
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
177 };
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
178
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
179 static void
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
180 init_plugin(GaimPlugin *plugin)
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
181 {
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
182 }
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
183
93211b7538d6 [gaim-migrate @ 10452]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
184 GAIM_INIT_PLUGIN(gtksignalstest, init_plugin, info)