pidgin/purple-plugin-pack
merge of '7d503f58ae2e2cb65eed43111cb889c5be44f9be'
and 'e17fb85a77616cf007683a0f83e3c130b4c52c04'
--- a/configure.ac Sun Jun 24 19:19:38 2007 -0400
+++ b/configure.ac Sun Jun 24 19:21:43 2007 -0400
@@ -307,6 +307,7 @@
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/convbadger/Makefile.am Sun Jun 24 19:21:43 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:21:43 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)