--- a/infopane/infopane.c Mon Oct 08 20:17:18 2007 -0400
+++ b/infopane/infopane.c Mon Oct 08 21:57:26 2007 -0400
@@ -29,7 +29,6 @@
@@ -138,9 +137,21 @@
plugin_load(PurplePlugin *plugin)
- purple_signal_connect(pidgin_conversations_get_handle(),
+ regsuccess = purple_signal_connect(pidgin_conversations_get_handle(), "conversation-displayed",
plugin, PURPLE_CALLBACK(set_conv_window_prefs), NULL);
+ purple_debug_error(PLUGIN_ID, "Libpurple and Pidgin are too old!\n"); + purple_debug_error(PLUGIN_ID, _("Libpurple and Pidgin are too old!\n")); + purple_notify_error(plugin, _("Incompatible Plugin"), + _("You need to update Pidgin!"), + _("This plugin is incompatible with the running version of Pidgin and Libpurple because it is too old. Please upgrade to the newest version of Pidgin.")); purple_signal_connect(purple_conversations_get_handle(),
@@ -207,10 +218,10 @@
- N_("Infopane craziness."),
- N_("Infopane craziness."),
"Sadrul H Chowdhury <sadrul@pidgin.im>",
@@ -236,15 +247,24 @@
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
- info.name = _("Infopane");
- info.summary = _("Allow customizing the details information in conversation windows.");
- info.description = _("Allow customizing the details information in conversation windows.");
+ if(purple_version_check(2,2,0) == NULL) { + info.name = _("Infopane Options"); + info.summary = _("Allow customizing the details information in conversation windows."); + info.description = _("Allow customizing the details information in conversation windows."); - purple_prefs_add_none(PREF_PREFIX);
- purple_prefs_add_string(PREF_POSITION, "top");
- purple_prefs_add_bool(PREF_DRAG, FALSE);
- purple_prefs_add_bool(PREF_SINGLE, TRUE);
- purple_prefs_add_bool(PREF_ICON, TRUE);
+ purple_prefs_add_none(PREF_PREFIX); + purple_prefs_add_string(PREF_POSITION, "top"); + purple_prefs_add_bool(PREF_DRAG, FALSE); + purple_prefs_add_bool(PREF_SINGLE, TRUE); + purple_prefs_add_bool(PREF_ICON, TRUE); + purple_debug_error(PLUGIN_ID, "Libpurple and Pidgin are too old!\n"); + purple_debug_error(PLUGIN_ID, _("Libpurple and Pidgin are too old!\n")); + info.name = _("Incompatible Plugin! - Check plugin details!"); + info.summary = _("This plugin is NOT compatible with this version of Pidgin!"); + info.description = _("This plugin is NOT compatible with this version of Pidgin!"); PURPLE_INIT_PLUGIN(infopane, init_plugin, info)