Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex > iRex Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 07-30-2007, 08:24 AM   #1
tomchek
Member
tomchek began at the beginning.
 
tomchek's Avatar
 
Posts: 14
Karma: 10
Join Date: Jul 2007
Location: Bonn, Germany
Device: iLiad, Nokia 770
Toolbar icons

Hi all,

I have a question about the toolbar icons: I have written (found) some code for the iLiad that changes the state of the keyboard icon in the toolbar. The problem is that if I close (ctrl+c) this application, the keyboard icon does not get his old state back (the state before I started my application). Does somebody know what I can do?

By the way: how can I find out an icon state?
tomchek is offline   Reply With Quote
Old 07-30-2007, 08:46 AM   #2
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
All icons should return to their normal state when you cleanly close out of the program... Have you tried exiting with a quit? What about starting the program form the contentlister instead of the terminal?
Adam B. is offline   Reply With Quote
Advert
Old 07-30-2007, 09:23 AM   #3
tomchek
Member
tomchek began at the beginning.
 
tomchek's Avatar
 
Posts: 14
Karma: 10
Join Date: Jul 2007
Location: Bonn, Germany
Device: iLiad, Nokia 770
Sorry Adam, I don't know how to close a program cleanly (in C language) Is this some GTK specific or what? Perhaps you can post a simple code snippet if it's no act?
tomchek is offline   Reply With Quote
Old 07-30-2007, 10:16 AM   #4
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
Google gtk_main_quit. I believe that's what cleanly closes the program...
Adam B. is offline   Reply With Quote
Old 07-30-2007, 10:42 AM   #5
tomchek
Member
tomchek began at the beginning.
 
tomchek's Avatar
 
Posts: 14
Karma: 10
Join Date: Jul 2007
Location: Bonn, Germany
Device: iLiad, Nokia 770
Ok, you are right. When I start the application over contentlister and close it with gtk_main_quit() the icons get her original state back. But why does it not close cleanly if I start the application over shell and press the close button (in my app)? Any ideas?
tomchek is offline   Reply With Quote
Advert
Old 07-30-2007, 11:06 AM   #6
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
The icons are controlled by the contentlister when no other programs are active. The contentlister keeps track of when an app is opened from it, and waits for it to close so that it knows when to restore the default icon set.

You may not even need to close cleanly, but simply launch the program from the contentlister and kill it from the terminal. This is typically only a minor inconvenience as most end-user apps will be launched and closed cleanly from the gui.
Adam B. is offline   Reply With Quote
Old 07-30-2007, 11:13 AM   #7
tomchek
Member
tomchek began at the beginning.
 
tomchek's Avatar
 
Posts: 14
Karma: 10
Join Date: Jul 2007
Location: Bonn, Germany
Device: iLiad, Nokia 770
Ah OK, I understand. Thank you very much.
tomchek is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
LrfAppender: IE toolbar similar to "Toolbar for Librie" mumurik LRF 1 10-13-2009 04:01 AM
LrfAppender: IE toolbar similar to "Toolbar for Librie" mumurik Sony Reader Dev Corner 1 10-06-2009 03:33 AM
Toolbar icons yingwu iRex 3 06-17-2009 12:20 PM
Sony Reader Icons, Other Reader Icons and much more! TheHeartlessHero Deals and Resources (No Self-Promotion or Affiliate Links) 27 11-21-2008 06:21 AM
iLiad Add new icons to the toolbar ouais32 iRex Developer's Corner 2 01-04-2008 12:04 PM


All times are GMT -4. The time now is 05:59 AM.


MobileRead.com is a privately owned, operated and funded community.