Thread: iLiad iLiad button support
View Single Post
Old 11-06-2008, 11:14 AM   #6
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
Quote:
Originally Posted by Antartica View Post
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.

Last edited by ericshliao; 11-06-2008 at 05:32 PM.
ericshliao is offline   Reply With Quote