Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] possible gtk-linux bug?


This is a bug.  Please enter a bug report and we'll fix it.



"Frank Benoit" <keinfarbton@xxxxxxxxxxxxxx>
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx

06/07/2008 08:57 PM

Please respond to
"Eclipse Platform SWT component developers list."        <platform-swt-dev@xxxxxxxxxxx>

To
platform-swt-dev@xxxxxxxxxxx
cc
Subject
[platform-swt-dev] possible gtk-linux bug?





I am working on a SWT port to another language, and i got an GTK assertion, triggered by that code:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt/Eclipse%20SWT/gtk/org/eclipse/swt/widgets/Shell.java?annotate=1.274

1989 :     int /*long*/ window = OS.gdk_window_at_pointer (x, y);
1990 :     int /*long*/ [] user_data = new int /*long*/ [1];
1991 :     OS.gdk_window_get_user_data (window, user_data);


Line 1989 can set the window to NULL and gdk_window_get_user_data prints then the assertion.
If i change the line 1991 to


1991 :     if( window != 0 ) OS.gdk_window_get_user_data (window, user_data);


the assertion goes away.
Is this now a bug fix, or did i miss something?

Frank
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top