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 next message
Oblivion is currently offline  Oblivion
Messages: 577
Registered: August 2007
Location: Turkey
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

Re: Curious code in GtkEvent.cpp [message #42078 is a reply to message #42077] Mon, 17 February 2014 01:00 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 627
Registered: September 2012
Location: Poland, Kraków
Contributor
Hello Oblivion,

I think that in line 128 there should be:
gtk_im_context_focus_out(p->top->im_context);


But it still dosen't resolve gtk backend focus problems on KDE Sad Moreover, I decided to enclose exemplary image:

index.php?t=getfile&id=4435&private=0

Sincerely,
Klugier


Ultimate++ - one framework to rule them all.
Re: Curious code in GtkEvent.cpp [message #42112 is a reply to message #42077] Fri, 21 February 2014 11:23 Go to previous message
mirek is currently offline  mirek
Messages: 12017
Registered: November 2005
Ultimate Member
This definitely looks like a typo, fixed...
Previous Topic: GLCtrl in TopWindow
Next Topic: GLCtrl problem in Linux after switching to GTK backend
Goto Forum:
  


Current Time: Wed Sep 18 07:08:29 CEST 2019

Total time taken to generate the page: 0.00634 seconds