After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 313808 - Run application: update the known apps list while typing
Run application: update the known apps list while typing
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-08-18 11:00 UTC by Lucas Nussbaum
Modified: 2015-03-24 13:01 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12



Description Lucas Nussbaum 2005-08-18 11:00:10 UTC
It would be great if the dialog could update the known applications list while
typing. For example, I could type "Tex" and the only "known apps" still
displayed would be those matching *Tex*.

Other information:
Comment 1 Wouter Bolsterlee (uws) 2005-08-24 21:06:57 UTC
Or, at least select the item that matches the typed text in the entry (and its
completion), so that you type  gconf-e  which is completed to  gconf-editor  and
the list below automagically selects the right icons+item.
Comment 2 Vincent Untz 2005-12-18 12:51:15 UTC
2005-12-18  Vincent Untz  <vuntz@gnome.org>

	Update the known applications list while typing and only show the
	items that match. Fix bug #313808.

	* panel-run-dialog.c: s/_command_icon_idle_id/_command_idle_id/g, add
	some FIXME, add a visible column to the liststore,
	(panel_run_dialog_destroy): reinitialize value of the new changed_id
	handler id
	(panel_run_dialog_make_all_list_visible): new
	(panel_run_dialog_find_command_icon_idle): if the text doesn't match
	the item, look if the text is in the command/name/comment of the item
	and set the items visibility according to this, also make sure that we
	show the beginning of the list since the displayed items change
	(panel_run_dialog_add_items_idle): use a GtkTreeModelFilter
	(entry_event): use g_completion_complete_utf8(), disable the "changed"
	handler when we complete so that it's not called twice but only once
	(entry_changed): move some code around to make it more readable,
	reset the icon and the visibility of the list items if the text is
	void
	(panel_run_dialog_setup_entry): save the handler id for the "changed"
	signal
	* panel-util.[ch]: (panel_util_utf8_strstrcase): new, stolen from
	e-d-s
	(panel_util_unicode_get_utf8): ditto