[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: How to realize a battery-indicator with a trayicon? How to show the current capacity
- From: Mike Massonnet <mmassonnet gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: How to realize a battery-indicator with a trayicon? How to show the current capacity
- Date: Sun, 16 Nov 2008 20:36:49 +0100
Le Sun, 16 Nov 2008 10:56:40 -0700,
"Jim George" <jimgeorge gmail com> a écrit :
> 2008/11/16 Rorschach <r0rschach lavabit com>:
> > 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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]