finch/gntplugin.c

changeset 31294
73607ab89c6f
parent 29304
6a941ac152e3
child 33935
e740bbb8350c
child 38259
c593fc9f5438
equal deleted inserted replaced
31293:169eeb43b52c 31294:73607ab89c6f
62 } 62 }
63 63
64 static void 64 static void
65 decide_conf_button(PurplePlugin *plugin) 65 decide_conf_button(PurplePlugin *plugin)
66 { 66 {
67 if (purple_plugin_is_loaded(plugin) && 67 if (purple_plugin_is_loaded(plugin) &&
68 ((PURPLE_IS_GNT_PLUGIN(plugin) && 68 ((PURPLE_IS_GNT_PLUGIN(plugin) &&
69 FINCH_PLUGIN_UI_INFO(plugin) != NULL) || 69 FINCH_PLUGIN_UI_INFO(plugin) != NULL) ||
70 (plugin->info->prefs_info && 70 (plugin->info->prefs_info &&
71 plugin->info->prefs_info->get_plugin_pref_frame))) 71 plugin->info->prefs_info->get_plugin_pref_frame)))
72 gnt_widget_set_visible(plugins.conf, TRUE); 72 gnt_widget_set_visible(plugins.conf, TRUE);
260 */ 260 */
261 char *path; 261 char *path;
262 PurplePlugin *plugin; 262 PurplePlugin *plugin;
263 263
264 g_return_if_fail(plugins.window); 264 g_return_if_fail(plugins.window);
265 265
266 plugin = purple_plugin_probe(filename); 266 plugin = purple_plugin_probe(filename);
267 if (!plugin) { 267 if (!plugin) {
268 purple_notify_error(handle, _("Error loading plugin"), 268 purple_notify_error(handle, _("Error loading plugin"),
269 _("The selected file is not a valid plugin."), 269 _("The selected file is not a valid plugin."),
270 _("Please open the debug window and try again to see the exact error message.")); 270 _("Please open the debug window and try again to see the exact error message."));

mercurial