![]() |
#1 |
Member
![]() 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? |
![]() |
![]() |
![]() |
#2 |
Addicted to Porting
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() 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)
![]() |
![]() |
![]() |
![]() |
#4 |
Addicted to Porting
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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...
|
![]() |
![]() |
![]() |
#5 |
Member
![]() 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?
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Addicted to Porting
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#7 |
Member
![]() Posts: 14
Karma: 10
Join Date: Jul 2007
Location: Bonn, Germany
Device: iLiad, Nokia 770
|
Ah OK, I understand. Thank you very much.
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |