mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-20 05:50:11 +00:00
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:
parent
d6c80f57b6
commit
adcf2fd3f3
@ -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),
|
||||
|
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user