https://bugs.freedesktop.org/show_bug.cgi?id=43415

robinson <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |NOTABUG

--- Comment #17 from robinson <[email protected]> ---
What is happening, is that in SWT, display.dispose() calls
OS.gdk_event_handler_set (0, 0, 0), and since GTK can only have one event
handler at a time, SWT is effectively removing the event handler for [b]ALL[/b]
of GTK. 

>From the perspective of SWT, it's doing the correct thing, as it is cleaning up
after itself, as it is removing the SWT specific event handler that it had
added earlier.

call:  gdk_event_handler_set ((GdkEventFunc)gtk_main_do_event, NULL, NULL); 
and GTK will work again.
-robinson


NOTE: the "SWT" way of doing this, is as follows.

eventCallback = new Callback (this, "eventProc", 2);
eventProc = eventCallback.getAddress ();
if (eventProc == 0) error (SWT.ERROR_NO_MORE_CALLBACKS);
OS.gdk_event_handler_set (eventProc, 0, 0);

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to