GdkEventButton gdkEventButton = new GdkEventButton (); OS.memmove (gdkEventButton, gdkEvent, GdkEventButton.sizeof); if (gdkEventButton.button == 3) { showMenu ((int) gdkEventButton.x_root, (int) gdkEventButton.y_root);
if ((state & MENU) == 0) { GdkEventButton gdkEventButton = new GdkEventButton (); OS.memmove (gdkEventButton, gdkEvent, GdkEventButton.sizeof); if (gdkEventButton.button == 3) { showMenu ((int) gdkEventButton.x_root, (int) gdkEventButton.y_root); }
int gtk_event_after (int widget, int gdkEvent) {	GdkEvent event = new GdkEvent ();	OS.memmove (event, gdkEvent, GdkEventButton.sizeof);	switch (event.type) {		case OS.GDK_BUTTON_PRESS: {			GdkEventButton gdkEventButton = new GdkEventButton ();			OS.memmove (gdkEventButton, gdkEvent, GdkEventButton.sizeof);			if (gdkEventButton.button == 3) {				showMenu ((int) gdkEventButton.x_root, (int) gdkEventButton.y_root);			}			break;		}		case OS.GDK_FOCUS_CHANGE: {			GdkEventFocus gdkEventFocus = new GdkEventFocus ();			OS.memmove (gdkEventFocus, gdkEvent, GdkEventFocus.sizeof);			sendFocusEvent (gdkEventFocus.in != 0 ? SWT.FocusIn : SWT.FocusOut);			break;		}	}	return 0;}