rendered paste body#include <gtk/gtk.h>#include "xchat-plugin.h"#define PNAME "eIgnore"#define PDESC "Ignore Private Messages from Users not in list"#define PVERS "0.1"static xchat_plugin *ph;static void tClick( GtkWidget *widget, gpointer data ){ xchat_print (ph,"Test Button Has Been Clicked");}static int view_ignore( char *word[], char *word_eol[], void *userdata ){ GtkWidget *window; GtkWidget *button; gtk_init( NULL, NULL ); window = gtk_window_new ( GTK_WINDOW_TOPLEVEL ); gtk_container_set_border_width ( GTK_CONTAINER ( window ), 10 ); button = gtk_button_new_with_label ("Testing"); g_signal_connect( G_OBJECT( button ), "clicked", G_CALLBACK( tClick ), NULL ); gtk_container_add( GTK_CONTAINER ( window ), button ); gtk_widget_show( button ); gtk_widget_show ( window ); gtk_main(); return XCHAT_EAT_ALL;}int xchat_plugin_init( xchat_plugin *plugin_handle, char **plugin_name, char **plugin_desc, char **plugin_version, char *arg){ ph = plugin_handle; *plugin_name = PNAME; *plugin_desc = PDESC; *plugin_version = PVERS; xchat_printf( ph, "%s v%s - Loaded", PNAME,PVERS ); xchat_hook_command( ph, "eIgnore", XCHAT_PRI_NORM, view_ignore,"Usage: EIGNORE, Display Current Messages that been ignored", 0); return 1;}