gnope php gtk gui gnope.org  

gtk::statusicon

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
leon_pegg



Joined: 12 Jun 2006
Posts: 113
Location: hemel / UK

PostPosted: Fri Jun 16, 2006 11:58 pm    Post subject: gtk::statusicon Reply with quote

i was wondering wether the gtk::statusicon widget is going to be implemented
as it would be very usefull in some applications.

regards leon pegg
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Sat Jun 17, 2006 9:49 am    Post subject: Reply with quote

gtk::statusicon is a gtkmm class, not available in the original Gtk2. That's why it isn't possible to include it.

However, I heard that Gtk2.10 will have libegg not as extension, but as native Gtk classes which means that a systray icon will be possible then. But that will take some time :)
Back to top
ron_t



Joined: 11 Dec 2005
Posts: 78
Location: Gatineau, Quebec

PostPosted: Sat Jun 17, 2006 2:44 pm    Post subject: Re: gtk::statusicon Reply with quote

leon_pegg wrote:
i was wondering wether the gtk::statusicon widget is going to be implemented
as it would be very usefull in some applications.

regards leon pegg


If you don't want to wait, you could always roll your own by making a PNG version of the icon (or whatever graphics format turns your crank) and load it as a pixbuf.

There's an example of how to use an image in a button that can be adapted to your purposes on the PHP-Gtk2 Blog:

http://www.writingup.com/phpgtk2/0012_a_dynamic_button

-Ron T.
Back to top
leon_pegg



Joined: 12 Jun 2006
Posts: 113
Location: hemel / UK

PostPosted: Sat Jun 17, 2006 4:55 pm    Post subject: Reply with quote

thanks for the answer guys.

just out of intrest is there and widget that acts simila to a spread sheet.

thanks agian
Back to top
ron_t



Joined: 11 Dec 2005
Posts: 78
Location: Gatineau, Quebec

PostPosted: Sun Jun 18, 2006 7:02 pm    Post subject: Reply with quote

leon_pegg wrote:
thanks for the answer guys.

just out of intrest is there and widget that acts simila to a spread sheet.

thanks agian


There is, but it hasn't been implemented yet. You can get the same effect using a GtkTable, however.

Hmmm... This sounds like a good topic for the PHP-Gtk2 Blog.

-Ron T.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.