pidgin/purple-plugin-pack
merge of 'c1642b251c4bfc7484d863f09847ddb85a471e9f'
and 'c6330bccc2562677023dbf17e3adf7dfb31a32a6'
--- a/AUTHORS Fri Jun 22 00:57:18 2007 -0400
+++ b/AUTHORS Sun Jun 24 19:38:05 2007 -0400
@@ -30,4 +30,5 @@
--- a/ChangeLog Fri Jun 22 00:57:18 2007 -0400
+++ b/ChangeLog Sun Jun 24 19:38:05 2007 -0400
@@ -9,6 +9,7 @@
+ * Added more humorous stuff to eight_ball (resiak) * Fixed build-by-default status for switchspell
* Fix crash in album when using Pidgin 2.0.2 or newer
--- a/Makefile.am Fri Jun 22 00:57:18 2007 -0400
+++ b/Makefile.am Sun Jun 24 19:38:05 2007 -0400
@@ -26,6 +26,12 @@
SUBDIRS = common doc m4 po $(PP_PURPLE_BUILD) $(PP_PIDGIN_BUILD) $(PP_FINCH_BUILD)
BUILT_SOURCES = pp_config.h
$(OBJECTS): $(BUILT_SOURCES)
--- a/autoreply/autoreply.c Fri Jun 22 00:57:18 2007 -0400
+++ b/autoreply/autoreply.c Sun Jun 24 19:38:05 2007 -0400
@@ -248,6 +248,9 @@
PurpleMenuAction *action;
+ if (purple_blist_node_get_flags(node) & PURPLE_BLIST_NODE_FLAG_NO_SAVE) if (!PURPLE_BLIST_NODE_IS_BUDDY(node) && !PURPLE_BLIST_NODE_IS_CONTACT(node))
--- a/buddytime/buddytime.c Fri Jun 22 00:57:18 2007 -0400
+++ b/buddytime/buddytime.c Sun Jun 24 19:38:05 2007 -0400
@@ -185,6 +185,9 @@
bt_blist_drawing_menu_cb(PurpleBlistNode *node, GList **menu) {
PurpleMenuAction *action;
+ if (purple_blist_node_get_flags(node) & PURPLE_BLIST_NODE_FLAG_NO_SAVE) /* ignore chats and groups */
if(PURPLE_BLIST_NODE_IS_CHAT(node) || PURPLE_BLIST_NODE_IS_GROUP(node))
--- a/configure.ac Fri Jun 22 00:57:18 2007 -0400
+++ b/configure.ac Sun Jun 24 19:38:05 2007 -0400
@@ -78,8 +78,14 @@
AM_CONDITIONAL(HAVE_PURPLE, true)
-PURPLE_LIBDIR=`pkg-config --variable=libdir purple`
-PURPLE_DATADIR=`pkg-config --variable=datadir purple`
+if test x"$prefix" = x"NONE" ; then + PURPLE_LIBDIR=`pkg-config --variable=libdir purple` + PURPLE_DATADIR=`pkg-config --variable=datadir purple` + PURPLE_LIBDIR="$libdir" + PURPLE_DATADIR="$datadir" # this is a hack but should work fine.
@@ -117,8 +123,14 @@
AM_CONDITIONAL(HAVE_PIDGIN, false)
-PIDGIN_LIBDIR=`pkg-config --variable=libdir pidgin`
-PIDGIN_DATADIR=`pkg-config --variable=datadir pidgin`
+if test x"$prefix" = x"NONE" ; then + PIDGIN_LIBDIR=`pkg-config --variable=libdir pidgin` + PIDGIN_DATADIR=`pkg-config --variable=datadir pidgin` + PIDGIN_LIBDIR="$libdir" + PIDGIN_DATADIR="$datadir" if test x"$PIDGIN_LIBDIR" != x"" ; then
@@ -149,8 +161,14 @@
AM_CONDITIONAL(HAVE_FINCH, false)
-FINCH_LIBDIR=`pkg-config --variable=libdir finch`
-FINCH_DATADIR=`pkg-config --variable=datadir finch`
+if test x"$prefix" = x"NONE" ; then + FINCH_LIBDIR=`pkg-config --variable=libdir finch` + FINCH_DATADIR=`pkg-config --variable=datadir finch` + FINCH_DATADIR="$datadir" if test x"$FINCH_LIBDIR" != x"" ; then
@@ -289,6 +307,7 @@
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/convbadger/Makefile.am Sun Jun 24 19:38:05 2007 -0400
@@ -0,0 +1,27 @@
+EXTRA_DIST=.pidgin-plugin +convbadgerdir = $(PIDGIN_LIBDIR) +convbadger_la_LDFLAGS = -module -avoid-version +convbadger_LTLIBRARIES = convbadger.la +convbadger_la_LIBADD = \ +convbadger_la_SOURCES = convbadger.c + -DLIBDIR=\"$(PIDGIN_LIBDIR)\" \ + -DDATADIR=\"$(PIDGIN_DATADIR)\" \ + -DPIXMAPSDIR=\"$(PIDGIN_PIXMAPSDIR)\" \ --- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/convbadger/convbadger.c Sun Jun 24 19:38:05 2007 -0400
@@ -0,0 +1,88 @@
+ * GroupMsg - Send an IM to a group of buddies + * Copyright (C) 2004 Stu Tomlinson <stu@nosnilmot.com> + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# include "../pp_config.h" +#endif /* HAVE_CONFIG_H */ +#include "../common/i18n.h" +plugin_load(PurplePlugin *plugin) { + void *conv_handle = purple_conversations_get_handle(); + purple_signal_connect(conv_handle, "conversation-created", plugin, + PURPLE_CALLBACK(convbadger_conv_created_cb), NULL); + purple_signal_connect(conv_handle, "deleting-conversation", plugin, + PURPLE_CALLBACK(convbadger_conv_destroyed_cb), NULL); +static PurplePluginInfo info = { + PURPLE_PLUGIN_STANDARD, + PURPLE_PRIORITY_DEFAULT, + "gtk-plugin_pack-convbadger", + "Gary Kramlich <grim@reaperworld.com>", +init_plugin(PurplePlugin *plugin) { + bindtextdomain(GETTEXT_PACKAGE, PP_LOCALEDIR); + bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); + info.name = _("Conversation Badger"); + info.summary = _("Badges conversations with the protocol icon."); + info.description = _("Badges conversations with the protocol icon."); +PURPLE_INIT_PLUGIN(convbadger, init_plugin, info) --- a/eight_ball/eight_ball.c Fri Jun 22 00:57:18 2007 -0400
+++ b/eight_ball/eight_ball.c Sun Jun 24 19:38:05 2007 -0400
@@ -65,7 +65,17 @@
"I believe a medical attack could be successful."
-static PurpleCmdId eight_ball_cmd_id = 0, sg_ball_cmd_id = 0;
+static const gchar *fullcrap_strings[] = { + "you are only fullcrap", + "this is only fooling blabber", + "thats nots really nice", + "Oh I at all do not understand a pancake about what you here talk.", + "it shall be visible will be?" +static PurpleCmdId eight_ball_cmd_id = 0, eight_ball_cmd_func(PurpleConversation *conv, const gchar *cmd, gchar **args,
@@ -84,6 +94,10 @@
numstrings = sizeof(sg_ball_strings) / sizeof(sg_ball_strings[0]);
msgprefix = "The Purple Stargate Ball says";
+ } else if(!strcmp(cmd, "fullcrap")) { + numstrings = sizeof(fullcrap_strings) / sizeof(fullcrap_strings[0]); + msgprefix = "The Purple Fullcrap Ball says"; + msgs = fullcrap_strings; numstrings = sizeof(eight_ball_strings) / sizeof(eight_ball_strings[0]);
msgprefix = "The Purple 8 Ball says";
@@ -123,10 +137,11 @@
plugin_load(PurplePlugin *plugin)
- const gchar *eight_ball_help, *sg_ball_help;
+ const gchar *eight_ball_help, *sg_ball_help, *fullcrap_help; eight_ball_help = _("8ball: sends a random 8ball message");
sg_ball_help = _("sgball: sends a random Stargate Ball message");
+ fullcrap_help = _("fullcrap: sends random fooling blabber"); eight_ball_cmd_id = purple_cmd_register("8ball", "w", PURPLE_CMD_P_PLUGIN,
PURPLE_CMD_FLAG_IM | PURPLE_CMD_FLAG_CHAT |
@@ -140,6 +155,12 @@
PURPLE_CMD_FUNC(eight_ball_cmd_func),
+ fullcrap_cmd_id = purple_cmd_register("fullcrap", "w", PURPLE_CMD_P_PLUGIN, + PURPLE_CMD_FLAG_IM | PURPLE_CMD_FLAG_CHAT | + PURPLE_CMD_FLAG_ALLOW_WRONG_ARGS, NULL, + PURPLE_CMD_FUNC(eight_ball_cmd_func), --- a/lastseen/lastseen.c Fri Jun 22 00:57:18 2007 -0400
+++ b/lastseen/lastseen.c Sun Jun 24 19:38:05 2007 -0400
@@ -108,29 +108,19 @@
purple_blist_node_set_int((PurpleBlistNode*)buddy, "signedoff", time(NULL) );
-#if PURPLE_VERSION_CHECK(2,0,0)
drawing_tooltip_cb(PurpleBlistNode *node, GString *str, gboolean full, void *data)
-drawing_tooltip_cb(PurpleBlistNode *node, char **text, void *data)
PurpleBuddy *buddy = NULL;
time_t last = 0, max = 0, off = 0, on = 0;
gchar *seen = NULL, *said = NULL, *offs = NULL, *ons = NULL;
-#if !PURPLE_VERSION_CHECK(2,0,0)
if(PURPLE_BLIST_NODE_IS_BUDDY(node))
-#if PURPLE_VERSION_CHECK(2,0,0)
node = (PurpleBlistNode *)purple_buddy_get_contact((PurpleBuddy *)node);
@@ -167,31 +157,15 @@
said = g_strchomp(g_markup_escape_text(tmp, -1));
-#if PURPLE_VERSION_CHECK(2,0,0)
g_string_append_printf(str,
- "%s %s" /* Last seen */
- "%s %s" /* Last said */
- "%s %s" /* Signed on */
- "%s %s", /* Signed off */
- seen ? _("\n<b>Last Seen:</b>") : "", seen ? seen : "",
- said ? _("\n<b>Last Said:</b>") : "", said ? said : "",
- ons ? _("\n<b>Signed On:</b>") : "", ons ? ons : "",
- offs ? _("\n<b>Signed Off:</b>") : "", offs ? offs : "");
- tmp2 = g_strdup(*text);
- *text = g_strdup_printf("%s" /* existing */
- "%s %s" /* Last seen */
- "%s %s" /* Last said */
- "%s %s" /* Signed on */
- "%s %s", /* Signed off */
- seen ? _("\n<b>Last Seen:</b>") : "", seen ? seen : "",
- said ? _("\n<b>Last Said:</b>") : "", said ? said : "",
- ons ? _("\n<b>Signed On:</b>") : "", ons ? ons : "",
- offs ? _("\n<b>Signed Off:</b>") : "", offs ? offs : "");
+ "%s%s", /* Signed off */ + seen ? _("\n<b>Last Seen</b>: ") : "", seen ? seen : "", + said ? _("\n<b>Last Said</b>: ") : "", said ? said : "", + ons ? _("\n<b>Signed On</b>: ") : "", ons ? ons : "", + offs ? _("\n<b>Signed Off</b>: ") : "", offs ? offs : ""); --- a/listhandler/Makefile.am Fri Jun 22 00:57:18 2007 -0400
+++ b/listhandler/Makefile.am Sun Jun 24 19:38:05 2007 -0400
@@ -1,4 +1,12 @@
-EXTRA_DIST = .build .purple-plugin *.h Makefile.mingw
listhandlerdir = $(PURPLE_LIBDIR)
--- a/listhandler/gen_xml_files.c Fri Jun 22 00:57:18 2007 -0400
+++ b/listhandler/gen_xml_files.c Sun Jun 24 19:38:05 2007 -0400
@@ -314,7 +314,7 @@
tmpbuddy = (PurpleBuddy *)b;
if(purple_buddy_get_account(tmpbuddy) == source_account) {
tmpalias = purple_buddy_get_alias_only(tmpbuddy);
- if ( tmpalias != NULL ){
+ if (tmpalias != NULL) { tmpname = purple_buddy_get_name(tmpbuddy);
buddy = xmlnode_new_child(parent, "buddy");
xmlnode_set_attrib(buddy, "screenname", tmpname);
@@ -450,13 +450,12 @@
lh_generic_alist_build_tree(void)
- xmlnode *root_node = xmlnode_new("exported_buddy_list");
+ xmlnode *root_node = xmlnode_new("exported_alias_list"); /* since building this tree is really building three smaller trees that
* share a common parent, we'll build each tree separately to make this
* easier to read and understand what goes in each tree (hopefully). */
lh_generic_build_config_tree(xmlnode_new_child(root_node, "config"));
- lh_generic_build_privacy_tree(xmlnode_new_child(root_node, "privacy"));
lh_generic_build_alist_tree(xmlnode_new_child(root_node, "alist"));
--- a/simfix/simfix.c Fri Jun 22 00:57:18 2007 -0400
+++ b/simfix/simfix.c Sun Jun 24 19:38:05 2007 -0400
@@ -71,6 +71,9 @@
PurpleMenuAction *bna = NULL;
+ if (purple_blist_node_get_flags(node) & PURPLE_BLIST_NODE_FLAG_NO_SAVE) if(!PURPLE_BLIST_NODE_IS_BUDDY(node))
if (!purple_blist_node_get_bool(node, "sim-user"))