diff options
author | Michael Natterer <mitch@imendio.com> | 2008-12-05 11:31:30 +0000 |
---|---|---|
committer | Michael Natterer <mitch@src.gnome.org> | 2008-12-05 11:31:30 +0000 |
commit | 9b598898476baa9cf419a1cc49bdf05fffebf5c0 (patch) | |
tree | fe5fb203ef67ae1f42b0b3e5d11145e440763ac6 /gtk/gtkentry.h | |
parent | e2d2ea6fd7a5e274797ac7e59af74947a067a44d (diff) | |
download | gtk+-9b598898476baa9cf419a1cc49bdf05fffebf5c0.tar.gz |
Bug 546285 – Allow GtkEntry to draw progress
2008-12-05 Michael Natterer <mitch@imendio.com>
Bug 546285 – Allow GtkEntry to draw progress
* gtk/gtkentry.[ch]: add new API similar to GtkProgressBar which
allows to set the entry's progress_fraction, its progress_pulse_step
and to let the entry's progress pulse.
* gtk/gtk.symbols: updated.
* tests/testgtk.c: add progress demo code to the "Entry" window.
svn path=/trunk/; revision=21846
Diffstat (limited to 'gtk/gtkentry.h')
-rw-r--r-- | gtk/gtkentry.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk/gtkentry.h b/gtk/gtkentry.h index 1416033859..b5781d4f1e 100644 --- a/gtk/gtkentry.h +++ b/gtk/gtkentry.h @@ -212,6 +212,18 @@ void gtk_entry_set_cursor_hadjustment (GtkEntry *entry, GtkAdjustment *adjustment); GtkAdjustment* gtk_entry_get_cursor_hadjustment (GtkEntry *entry); +/* Progress API + */ +void gtk_entry_set_progress_fraction (GtkEntry *entry, + gdouble fraction); +gdouble gtk_entry_get_progress_fraction (GtkEntry *entry); + +void gtk_entry_set_progress_pulse_step (GtkEntry *entry, + gdouble fraction); +gdouble gtk_entry_get_progress_pulse_step (GtkEntry *entry); + +void gtk_entry_progress_pulse (GtkEntry *entry); + /* Deprecated compatibility functions */ |