Le Sun, 16 Nov 2008 10:56:40 -0700,
"Jim George" <[EMAIL PROTECTED]> a écrit :

> 2008/11/16 Rorschach <[EMAIL PROTECTED]>:
> > Hi,
> > I wanna write a little battery-indicator in C with GTK. It's
> > already working nicly in the console and I know how to write a
> > trayicon with gtk but what I don't know is: how can I show the
> > current capacity of the battery? I mean shall I do 100 pictures
> > (1-100%) and if the capacity changes just show the corresponding
> > new picture? This is imo a bad solution because I have to ship 100
> > pictures with my application.
> 
> Why not ship 10 images?

Have a look at the API for gdk_pixbuf_new_from_inline() if you want to
avoid shipping the images.

Mike
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to