All pastes #758028 Raw Edit

Something

public c v1 · immutable
·published 2007-11-01 20:58 UTC
rendered paste body
#include <glib.h>#include <glib/gi18n.h>#include "version.h"#include "pidgin.h"#include "gtkconv.h"#include "gtkplugin.h"#define SEND_BUTTON_PLUGIN_ID "gtk-send-button"static gbooleanplugin_load(PurplePlugin *plugin){	g_print("plugin_load: Entering\n");	return TRUE;}static gbooleanplugin_unload(PurplePlugin *plugin){	g_print("plugin_unload: Entering\n");	return TRUE;}static voidplugin_init(PurplePlugin *plugin){	g_print("plugin_init: Entering\n");}static PurplePluginInfo info ={	PURPLE_PLUGIN_MAGIC,	PURPLE_MAJOR_VERSION,	PURPLE_MINOR_VERSION,	PURPLE_PLUGIN_STANDARD,                             /**< type           */	PIDGIN_PLUGIN_TYPE,                             /**< ui_requirement */	0,                                                /**< flags          */	NULL,                                             /**< dependencies   */	PURPLE_PRIORITY_DEFAULT,                            /**< priority       */	SEND_BUTTON_PLUGIN_ID,                            /**< id             */	N_("Send Button"),                                /**< name           */	VERSION,                                          /**< version        */	                                                  /**  summary        */	N_("Adds a button you can click to send your message"),	                                                  /**  description    */	N_("Adds a button to the conversation window for sending messages when a physical keyboard is unavailable."),	"Gabriel Schulhof <nix@go-nix.ca>",               /**< author         */	"http://pidgin.garage.maemo.org/",                /**< homepage       */	plugin_load,                                      /**< load           */	plugin_unload,                                    /**< unload         */	NULL,                                             /**< destroy        */	NULL,                                             /**< ui_info        */	NULL,                                             /**< extra_info     */	NULL,	NULL,	/* padding */	NULL,	NULL,	NULL,	NULL};PURPLE_INIT_PLUGIN(NULL, plugin_init, info)/*1. Compiled with:cc -g -Wall -O0 -shared '-DVERSION="0.0.1"' `pkg-config --cflags --libs pidgin` send-button.c -o send-button.so2. Copied send-button.so to /usr/lib/pidgin3. Started Pidgin4. Not showing up in Tools -> Plugins*/