[gtk/wip/baedert/filechooser2: 3/10] filechooserbutton: Remove some dead code
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/filechooser2: 3/10] filechooserbutton: Remove some dead code
- Date: Sun, 28 Apr 2019 10:34:37 +0000 (UTC)
commit 0f6d83bb5f104036da547842dd372e240b7bd279
Author: Timm Bäder <mail baedert org>
Date: Sun Apr 28 11:02:59 2019 +0200
filechooserbutton: Remove some dead code
gtk/gtkfilechooserwidget.c | 5 -----
1 file changed, 5 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 2e93cd334e..8975080d33 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]