pidgin/purple-plugin-pack

Changes I didn't commit before propagating, like an idiot.
org.guifications.plugins.smartear
2007-08-19, rekkanoryo
2081b90f7bea
Parents 3bda18a8dfd6
Children 312973e86601
Changes I didn't commit before propagating, like an idiot.
--- a/common/gtk-template.c Sun Aug 19 04:42:58 2007 -0400
+++ b/common/gtk-template.c Sun Aug 19 04:48:44 2007 -0400
@@ -67,6 +67,7 @@
NULL, /* extra_info */
NULL, /* prefs_info */
NULL, /* actions */
+
NULL, /* reserved 1 */
NULL, /* reserved 2 */
NULL, /* reserved 3 */
--- a/smartear/gtksmartear.c Sun Aug 19 04:42:58 2007 -0400
+++ b/smartear/gtksmartear.c Sun Aug 19 04:48:44 2007 -0400
@@ -0,0 +1,96 @@
+/*
+ * gktsmartear.c - GTK+ configuration UI plugin to accompany smartear.
+ * Copyright (C) 2007 John Bailey <rekkanoryo@rekkanoryo.org>
+ *
+ * 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.
+ */
+
+#ifdef HAVE_CONFIG_H
+# include "../pp_config.h"
+#endif
+
+#define PURPLE_PLUGINS
+
+#define PLUGIN_AUTHOR "John Bailey <rekkanoryo@rekkanoryo.org>"
+
+/* System headers */
+#include <gdk/gdk.h>
+#include <glib.h>
+#include <gtk/gtk.h>
+
+/* Purple headers */
+#include <gtkplugin.h>
+#include <version.h>
+
+/* Pack/Local headers */
+#include "../common/pp_internal.h"
+
+static gboolean
+plugin_load(PurplePlugin *plugin) {
+ return TRUE;
+}
+
+static gboolean
+plugin_unload(PurplePlugin *plugin) {
+ return TRUE;
+}
+
+static PurplePluginInfo info = {
+ PURPLE_PLUGIN_MAGIC, /* Magic */
+ PURPLE_MAJOR_VERSION, /* Purple Major Version */
+ PURPLE_MINOR_VERSION, /* Purple Minor Version */
+ PURPLE_PLUGIN_STANDARD, /* plugin type */
+ PIDGIN_PLUGIN_TYPE, /* ui requirement */
+ 0, /* flags */
+ NULL, /* dependencies */
+ PURPLE_PRIORITY_DEFAULT, /* priority */
+
+ "gtk-plugin_pack-smartear", /* plugin id */
+ NULL, /* name */
+ PP_VERSION, /* version */
+ NULL, /* summary */
+ NULL, /* description */
+ PLUGIN_AUTHOR, /* author */
+ PP_WEBSITE, /* website */
+
+ plugin_load, /* load */
+ plugin_unload, /* unload */
+ NULL, /* destroy */
+
+ NULL, /* ui_info */
+ NULL, /* extra_info */
+ NULL, /* prefs_info */
+ NULL, /* actions */
+
+ NULL, /* reserved 1 */
+ NULL, /* reserved 2 */
+ NULL, /* reserved 3 */
+ NULL /* reserved 4 */
+};
+
+static void
+init_plugin(PurplePlugin *plugin) {
+#ifdef ENABLE_NLS
+ bindtextdomain(GETTEXT_PACKAGE, PP_LOCALEDIR);
+ bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
+#endif /* ENABLE_NLS */
+
+ info.name = _(PLUGIN_NAME);
+ info.summary = _(PLUGIN_SUMMARY);
+ info.description = _(PLUGIN_DESCRIPTION);
+}
+
+PURPLE_INIT_PLUGIN(PLUGIN_STATIC_NAME, init_plugin, info)