forked from AuroraMiddleware/gtk
filechooserbutton: Remove some dead code
This commit is contained in:
parent
7e20232607
commit
0f6d83bb5f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user