Quote:
Originally Posted by Antartica
In the iliad, that id is used to find the window that will receive hardware buttons synthetic keypresses (generated by contentlister).
|
Thanx for the detailed description. I have to learn more to catch up.
I still have a question about how a app respond to key pressed event from contentliester.
From ipdf source code, I copied "s_signal_connect" and "keyPressCbk" to my app, but that seems not enough. My app still not repond to PageUp and PageDown key. What part does I miss?
I still don't know how and where to:
make the main window of the application to have a class name of "sh"
Should I use gtk_window_set_wmclass()? But I don't see it in ipdf source code. How does ipdf do it?
Well, I guess the relevant code is (in GtkMgr.cpp) :
Code:
gtk_window_set_title(GTK_WINDOW(window), PACKAGE " " VERSION );
and I should replace "PACKAGE " " VERSION" to "sh"
Another question: I don't see PACKAGE " " VERSION defined in ipdf source code. Strange.
Finally, I found the solution:
http://forum.irexnet.com/viewtopic.php?t=1110
My guess is correct...partly. It seems both gtk_window_set_title and gtk_window_set_wmclass can do the right job.