Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
Oblivion is currently offline  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.


[Updated on: Mon, 17 February 2014 00:23]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: GLCtrl in TopWindow
Next Topic: GLCtrl problem in Linux after switching to GTK backend
Goto Forum:
  


Current Time: Fri Nov 01 00:26:00 CET 2024

Total time taken to generate the page: 0.03218 seconds