GtkEventsMotion
i have the following function to test a mouse motion event
1 2 3 4 5 6 7 8 9 10 11
|
gboolean mouseMove(GtkWidget* widget, GdkEventMotion* event, gpointer data)
{
if(event)
{
char* x = new char[MAX_PATH];
sprintf(x,"(%i,%i,%i)",event->x,event->y,event->time);
gtk_window_set_title(GTK_WINDOW(widget),x);
return TRUE;
}
return FALSE;
}
|
the problem is, that it outputs (0,
some-really-huge-number , 0)
what would cause this? am i not attaching the signal correctly?
Topic archived. No new replies allowed.