Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Curious code in GtkEvent.cpp
Curious code in GtkEvent.cpp [message #42077] |
Mon, 17 February 2014 00:19 |
Oblivion
Messages: 1135 Registered: August 2007
|
Senior Contributor |
|
|
Hello,
While I was investigating a problem with trayicon example in gtk backend (not working, more specifically, blocking the UI, if trayicon is put into its own event loop as in the reference example, by the way), I saw the below code block.
case GDK_FOCUS_CHANGE:
if(p) {
if(((GdkEventFocus *)event)->in)
gtk_im_context_focus_in(p->top->im_context); // <------ line 126
else
gtk_im_context_focus_in(p->top->im_context); // <------ Same as line 126
AddEvent(user_data, EVENT_NONE, value);
}
return false;
I am not very familiar with GTK event handling system; Is this normal?
Regards.
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Mon, 17 February 2014 00:23] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Nov 01 00:26:00 CET 2024
Total time taken to generate the page: 0.03218 seconds
|