filechooserbutton: Remove some dead code

This commit is contained in:
Timm Bäder 2019-04-28 11:02:59 +02:00
parent 7e20232607
commit 0f6d83bb5f

View File

@ -1395,11 +1395,8 @@ widget_key_press_cb (GtkEventControllerKey *controller,
GtkFileChooserWidget *impl = (GtkFileChooserWidget *) data;
GtkFileChooserWidgetPrivate *priv = impl->priv;
gboolean handled = FALSE;
GdkEvent *event;
const char *string;
event = gtk_get_current_event ();
if (should_trigger_location_entry (impl, keyval, state, &string))
{
if (priv->action == GTK_FILE_CHOOSER_ACTION_OPEN ||
@ -1420,8 +1417,6 @@ widget_key_press_cb (GtkEventControllerKey *controller,
}
}
g_object_unref (event);
return handled;
}