Re: Sending GdkEvents to Gtk Widget

2010-07-17 Thread Andy Stewart
Hi Bharathwaaj, Bharathwaaj Srinivasan writes: > Hi Andy, > > I couldn't understand the meaning of serializeEvent. Because it's Haskell. :) I will explain at below. > > But still I simply tried the following in the socket source callback from > GLib. > >             GdkEvent event; >  

Re: Sending GdkEvents to Gtk Widget

2010-07-12 Thread Bharathwaaj Srinivasan
Hi Andy, Thank you very much for your patient reply. I had actually filled the GdkWindow field. But while copy pasting line by line, it somehow got missed. :P Now it is solved. The problem was, I was blocking the callback function without returning it to GLib! Since mine was kinda minimal test

Re: Sending GdkEvents to Gtk Widget

2010-07-12 Thread Bharathwaaj Srinivasan
Hi Andy, I couldn't understand the meaning of serializeEvent. But still I simply tried the following in the socket source callback from GLib. GdkEvent event; memset(&event, 0, sizeof(GdkEvent)); event.key.type = GDK_KEY_PRESS; event.key.keyval = GD

Re: Sending GdkEvents to Gtk Widget

2010-07-12 Thread Andy Stewart
Hi Bharathwaaj, I'm a developer of gtk2hs (Haskell binding to gtk+). I have fix same problem (WebKit widget and GdkEvent) at Haskell side. (https://patch-tag.com/r/AndyStewart/gtk-serialized-event/snapshot/current/content/pretty/Graphics/UI/Gtk/Gdk/SerializedEvent.hsc) This is screenshot : http:

Sending GdkEvents to Gtk Widget

2010-07-11 Thread Bharathwaaj Srinivasan
Hi, Is it possible to send GdkEvents to a GtkWidget from the application? Currently I've a GIOChannel which is listening to a socket and the GSource is attached to the Glib main loop. g_type_init(); g_thread_init(NULL); gdk_threads_init(); gdk_threads_enter(); gtk_init(NULL,