Don't try to toggle the visibility of the location entry field in search

2008-05-24  Jan Arne Petersen  <jpetersen@jpetersen.org>

	* gtk/gtkfilechooserdefault.c: (location_toggle_popup_handler): Don't
	try to toggle the visibility of the location entry field in search and
	recent mode (#526422)


svn path=/trunk/; revision=20138
This commit is contained in:
Jan Arne Petersen 2008-05-24 18:59:56 +00:00 committed by Jan Arne Petersen
parent d6c80f57b6
commit adcf2fd3f3
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2008-05-24 Jan Arne Petersen <jpetersen@jpetersen.org>
* gtk/gtkfilechooserdefault.c: (location_toggle_popup_handler): Don't
try to toggle the visibility of the location entry field in search and
recent mode (#526422)
2008-05-24 Jan Arne Petersen <jpetersen@jpetersen.org>
* gtk/gtkfilechooserdefault.c: (shortcuts_query_tooltip_cb),

View File

@ -5216,6 +5216,14 @@ location_mode_set (GtkFileChooserDefault *impl,
static void
location_toggle_popup_handler (GtkFileChooserDefault *impl)
{
/* when in search or recent files mode, we are not showing the
* location_entry_box container, so there's no point in switching
* to it.
*/
if (impl->operation_mode == OPERATION_MODE_SEARCH ||
impl->operation_mode == OPERATION_MODE_RECENT)
return;
/* If the file entry is not visible, show it.
* If it is visible, turn it off only if it is focused. Otherwise, switch to the entry.
*/