Comment 24 for bug 387957

Revision history for this message
Cody Russell (bratsche) wrote :

To add some more specifics, the modes you should be looking into are stored in impl->operation_mode and impl->location_mode. The patch should be improved so it checks:

if (event->button == 1 && event->type == GDK_2BUTTON_PRESS)
{
    if ((impl->operation_mode == OPERATION_MODE_SEARCH || /* whatever */) &&
         (impl->location_mode == LOCATION_MODE_PATH_BAR || /* whatever */))
    {
        g_timeout_add (50, (GSourceFunc) location_entry_grab_focus, impl);
    }

   return FALSE;
}