im.pidgin.pidgin: 4341e599d112f3be408cb2a92fa459cc7c25b29c

datallah at pidgin.im datallah at pidgin.im
Thu Oct 18 14:15:46 EDT 2007


-----------------------------------------------------------------
Revision: 4341e599d112f3be408cb2a92fa459cc7c25b29c
Ancestor: ca4c40c7119d3222ca33d10a8f578782de29ad28
Author: datallah at pidgin.im
Date: 2007-10-18T18:13:30
Branch: im.pidgin.pidgin

Modified files:
        pidgin/gtkdialogs.c

ChangeLog: 

Make Perl and Tcl debug information in the About dialog based on runtime information (the Perl and Tcl plugins being present) instead of compile time information.  This should be more accurate.  I don't know how this affects statically linked plugins (is that even possible for these plugins?).

-------------- next part --------------
============================================================
--- pidgin/gtkdialogs.c	94142e894ebeade0c73a866e46220562e1d8949b
+++ pidgin/gtkdialogs.c	d50958bafc85818e0cb1f48c5e156fd17c0a497c
@@ -645,11 +645,10 @@ g_string_append(str, "<br/>  <b>Library 
 	g_string_append(str, "    <b>Network Security Services (NSS):</b> Disabled<br/>");
 #endif
 
-#ifdef HAVE_PERL
+if (purple_plugins_find_with_id("core-perl") != NULL)
 	g_string_append(str, "    <b>Perl:</b> Enabled<br/>");
-#else
+else
 	g_string_append(str, "    <b>Perl:</b> Disabled<br/>");
-#endif
 
 #ifndef _WIN32
 #ifdef HAVE_STARTUP_NOTIFICATION
@@ -659,17 +658,17 @@ g_string_append(str, "<br/>  <b>Library 
 #endif
 #endif
 
-#ifdef HAVE_TCL
+if (purple_plugins_find_with_id("core-tcl") != NULL) {
 	g_string_append(str, "    <b>Tcl:</b> Enabled<br/>");
-#else
-	g_string_append(str, "    <b>Tcl:</b> Disabled<br/>");
-#endif
-
 #ifdef HAVE_TK
 	g_string_append(str, "    <b>Tk:</b> Enabled<br/>");
 #else
 	g_string_append(str, "    <b>Tk:</b> Disabled<br/>");
 #endif
+} else {
+	g_string_append(str, "    <b>Tcl:</b> Disabled<br/>");
+	g_string_append(str, "    <b>Tk:</b> Disabled<br/>");
+}
 
 #ifndef _WIN32
 #ifdef USE_SM


More information about the Commits mailing list