[Aptitude-devel] Moving the search progress indicator?
Obey Arthur Liu
arthur at milliways.fr
Thu Jan 15 19:22:54 UTC 2009
Obey Arthur Liu a écrit :
> Daniel Burrows a écrit :
>> I've noticed that it's easy to miss the search progress indicator in
>> the GUI, because you enter the search at the top of the window but the
>> progress is shown at the bottom. I wonder if it would be worthwhile to
>> move the progress bar to the top of the window instead? Actually, it
>> seems to me that maybe we could hide the search entry and replace it
>> with the progress bar and a "Cancel" button.
>>
>> Any thoughts?
>
> The Gtk+ documentation says:
>
> "Since 2.16, GtkEntry has the ability to display progress or activity
> information behind the text. To make an entry display such information,
> use gtk_entry_set_progress_fraction() or
> gtk_entry_set_progress_pulse_step()."
D'oh! I was going to add a nice parametered constructor to guiOpProgress
which would take a Gtk::WidgetThatHasAProgressBar abstract class like
Gtk::Entry. Too bad there's no such abstract class. In fact, Gtkmm
doesn't even provide the set_progress_fraction() method for Gtk::Entry.
This sucks. Now we have to do ugly stuff like temporarily swapping out
the Gtk::Entry with a Gtk::ProgressBar. Or maybe bypass Gtkmm and call
the underlying C GtkObject. Bah. Poor nice little first idea.
Arthur
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://lists.alioth.debian.org/pipermail/aptitude-devel/attachments/20090115/f558a57a/attachment.pgp
More information about the Aptitude-devel
mailing list