| 105 } |
105 } |
| 106 |
106 |
| 107 /************************************************************************** |
107 /************************************************************************** |
| 108 * Plugin stuff |
108 * Plugin stuff |
| 109 **************************************************************************/ |
109 **************************************************************************/ |
| |
110 static PidginPluginInfo * |
| |
111 plugin_query(GError **error) |
| |
112 { |
| |
113 const gchar * const authors[] = { |
| |
114 "Gary Kramlich <amc_grim@users.sf.net>", |
| |
115 NULL |
| |
116 }; |
| |
117 |
| |
118 return pidgin_plugin_info_new( |
| |
119 "id", GTK_SIGNAL_TEST_PLUGIN_ID, |
| |
120 "name", N_("GTK Signals Test"), |
| |
121 "version", DISPLAY_VERSION, |
| |
122 "category", N_("Testing"), |
| |
123 "summary", N_("Test to see that all ui signals are working properly."), |
| |
124 "description", N_("Test to see that all ui signals are working properly."), |
| |
125 "authors", authors, |
| |
126 "website", PURPLE_WEBSITE, |
| |
127 "abi-version", PURPLE_ABI_VERSION, |
| |
128 NULL |
| |
129 ); |
| |
130 } |
| |
131 |
| 110 static gboolean |
132 static gboolean |
| 111 plugin_load(PurplePlugin *plugin) |
133 plugin_load(PurplePlugin *plugin, GError **error) |
| 112 { |
134 { |
| 113 void *accounts_handle = pidgin_accounts_get_handle(); |
135 void *accounts_handle = pidgin_accounts_get_handle(); |
| 114 void *blist_handle = pidgin_blist_get_handle(); |
136 void *blist_handle = pidgin_blist_get_handle(); |
| 115 void *conv_handle = pidgin_conversations_get_handle(); |
137 void *conv_handle = pidgin_conversations_get_handle(); |
| 116 |
138 |
| 140 |
162 |
| 141 return TRUE; |
163 return TRUE; |
| 142 } |
164 } |
| 143 |
165 |
| 144 static gboolean |
166 static gboolean |
| 145 plugin_unload(PurplePlugin *plugin) { |
167 plugin_unload(PurplePlugin *plugin, GError **error) { |
| 146 return TRUE; |
168 return TRUE; |
| 147 } |
169 } |
| 148 |
170 |
| 149 static PurplePluginInfo info = |
171 PURPLE_PLUGIN_INIT(gtksignalstest, plugin_query, plugin_load, plugin_unload); |
| 150 { |
|
| 151 PURPLE_PLUGIN_MAGIC, |
|
| 152 PURPLE_MAJOR_VERSION, |
|
| 153 PURPLE_MINOR_VERSION, |
|
| 154 PURPLE_PLUGIN_STANDARD, /**< type */ |
|
| 155 PIDGIN_PLUGIN_TYPE, /**< ui_requirement */ |
|
| 156 0, /**< flags */ |
|
| 157 NULL, /**< dependencies */ |
|
| 158 PURPLE_PRIORITY_DEFAULT, /**< priority */ |
|
| 159 |
|
| 160 GTK_SIGNAL_TEST_PLUGIN_ID, /**< id */ |
|
| 161 N_("GTK Signals Test"), /**< name */ |
|
| 162 DISPLAY_VERSION, /**< version */ |
|
| 163 /** summary */ |
|
| 164 N_("Test to see that all ui signals are working properly."), |
|
| 165 /** description */ |
|
| 166 N_("Test to see that all ui signals are working properly."), |
|
| 167 "Gary Kramlich <amc_grim@users.sf.net>", /**< author */ |
|
| 168 PURPLE_WEBSITE, /**< homepage */ |
|
| 169 |
|
| 170 plugin_load, /**< load */ |
|
| 171 plugin_unload, /**< unload */ |
|
| 172 NULL, /**< destroy */ |
|
| 173 |
|
| 174 NULL, /**< ui_info */ |
|
| 175 NULL, /**< extra_info */ |
|
| 176 NULL, |
|
| 177 NULL, |
|
| 178 |
|
| 179 /* padding */ |
|
| 180 NULL, |
|
| 181 NULL, |
|
| 182 NULL, |
|
| 183 NULL |
|
| 184 }; |
|
| 185 |
|
| 186 static void |
|
| 187 init_plugin(PurplePlugin *plugin) |
|
| 188 { |
|
| 189 } |
|
| 190 |
|
| 191 PURPLE_INIT_PLUGIN(gtksignalstest, init_plugin, info) |
|