#include #include"../src/plugin.h" #include"../src/gui.h" #include #define M_EF_MOUSEPOINT "/effect/mousepoint" static gint xx=0; static gint yy=0; static gint mouse_event(GtkWidget* widget, GdkEventButton* event){//ch xx=event->x; yy=event->y; g_message("%d,%d",xx,yy); return TRUE; } void effect_mousepoint_pref(){ gtk_signal_connect(GTK_OBJECT(drawing_area), "button_press_event", GTK_SIGNAL_FUNC(mouse_event), NULL); } void effect_mousepoint(GdkImlibImage* im){ } PluginInfo plugin_info = { { M_EF_MOUSEPOINT, NULL, effect_mousepoint_pref, 0, NULL}, effect_mousepoint,NULL };