[Gtk-sharp-list] ProgressBar

Mike Kestner mkestner@ximian.com
Mon, 09 Feb 2004 10:54:14 -0600

On Sun, 2004-02-08 at 19:32, Graham Orr wrote:
> Yet ProgressBar seems to inherit directly from Gtk.Widget, meaning you
> can't set things like ActivityMode. Is this a bug, or have I
> misunderstood something.

>From the gtk+ docs on developer.gnome.org:

The GtkProgressBar/GtkProgress API in GTK 1.2 was bloated, needlessly
complex and hard to use properly. Therefore GtkProgress has been
deprecated completely and the GtkProgressBar API has been reduced to the
following 10 functions: gtk_progress_bar_new(),
gtk_progress_bar_pulse(), gtk_progress_bar_set_text(),
gtk_progress_bar_set_fraction(), gtk_progress_bar_set_pulse_step(),
gtk_progress_bar_set_orientation(), gtk_progress_bar_get_text(),
gtk_progress_bar_get_fraction(), gtk_progress_bar_get_pulse_step(),
gtk_progress_bar_get_orientation(). These have been grouped at the
beginning of this section, followed by a large chunk of deprecated 1.2
compatibility functions.

Since GtkProgress is deprecated, Gtk# hides it and derives
Gtk.ProgressBar directly from Gtk.Widget.

Mike Kestner <mkestner@ximian.com>