|Re: What is gtk_main_do_event doing? [message #985897 is a reply to message #985894]
||Fri, 16 November 2012 15:27
| Grant Gayed
Registered: July 2009
One other detail is that if it is the Mozilla case then you may not see |
its event code at the GTK link I provided because I think Mozilla
defines some custom event types for its own internal use.
On 11/16/2012 10:24 AM, Grant Gayed wrote:
> Even better, you can determine this on your end by putting a breakpoint
> in SWT's OS.gtk_main_do_event(...) method (where it invokes
> _OS.gtk_main_do_event(...)), and in the breakpoint's properties set the
> condition to:
> System.out.println("type: " + OS.GDK_EVENT_TYPE(event)); return false;
> This will print each event type to stdout but will not stop execution.
> Debug your app, don't run it otherwise the breakpoint condition code
> will not be executed. You can then look up the event types at
> http://developer.gnome.org/gdk/2.22/gdk-Events.html#GdkEventType . Try
> this with
> and you'll see that the event queue goes quiet if you aren't mousing
> within the Shell, etc.
> I'm going to make a guess that your case that shows a lot of events
> involves viewing a Mozilla-based Browser control, because the native
> renderer is known to fire a lot of timer events, possibly among others.
> On 11/16/2012 1:41 AM, Alexander Jiteg wrote:
>> So if we have a lot of action in this method without even using the
>> machine, is't due to some native event? Any suggestions on what type of
>> event that can be in this case?
Powered by FUDForum
. Page generated in 0.02240 seconds