Re: GtkProgress is deprecated, which progress bar should I use?
- From: "Leandro A. F. Pereira" <leandro linuxmag com br>
- To: gtk-app-devel-list gnome org
- Subject: Re: GtkProgress is deprecated, which progress bar should I use?
- Date: Mon, 13 Oct 2003 20:03:38 -0200
Quoted by a collection of cyborg droids
For `"Tom Liu" <tom liu flextrade com>'
On Monday, 13 October 2003 (09:35):
And also in these 9 functions, none of them can set the progressbar to
35% for example.
Use gtk_progress_bar_set_fraction(GtkProgressBar *pbar, gfloat fraction). Since
fraction is in percent:
35 per 100 = 35 / 100 = 0.35
So, to set the progress bar's value to 35%, use:
gtk_progress_bar_set_fraction(pbar, 0.35);
--
Leandro Pereira (oO) <leandro linuxmag com br>
/||\ www.mindcrisis.tk
"Se você obedece a todas as regras, acaba perdendo
toda a diversão." --Katherine Hepburn
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]