pidgin/gtkplugin.c

branch
next.minor
changeset 20872
fc317689cfef
parent 20147
66f05a854eee
child 21213
61d8c5197526
equal deleted inserted replaced
20871:08cde70d304c 20872:fc317689cfef
301 301
302 if (unload) 302 if (unload)
303 { 303 {
304 pidgin_set_cursor(plugin_dialog, GDK_WATCH); 304 pidgin_set_cursor(plugin_dialog, GDK_WATCH);
305 305
306 purple_plugin_unload(plug); 306 if (!purple_plugin_unload(plug))
307 {
308 const char *primary = _("Could not unload plugin");
309 const char *reload = _("The plugin could not be unloaded now, but will be disabled at the next startup.");
310
311 if (!plug->error)
312 {
313 purple_notify_warning(NULL, NULL, primary, reload);
314 }
315 else
316 {
317 char *tmp = g_strdup_printf("%s\n\n%s", reload, plug->error);
318 purple_notify_warning(NULL, NULL, primary, tmp);
319 g_free(tmp);
320 }
321
322 purple_plugin_disable(plug);
323 }
307 324
308 pidgin_clear_cursor(plugin_dialog); 325 pidgin_clear_cursor(plugin_dialog);
309 } 326 }
310 327
311 gtk_widget_set_sensitive(pref_button, 328 gtk_widget_set_sensitive(pref_button,

mercurial