[gtk+] file chooser widget: Covert to GdkEvent API
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] file chooser widget: Covert to GdkEvent API
- Date: Tue, 19 Sep 2017 17:15:40 +0000 (UTC)
commit c586a6486f1ab87534bcd9f1f1a8525ed073f428
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Aug 25 22:53:04 2017 -0400
file chooser widget: Covert to GdkEvent API
gtk/gtkfilechooserwidget.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index a3d5161..a077fb7 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -1332,7 +1332,10 @@ browse_files_key_press_event_cb (GtkWidget *widget,
(priv->action == GTK_FILE_CHOOSER_ACTION_OPEN ||
priv->action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER))
{
- location_popup_handler (impl, event->string);
+ const char *string;
+
+ gdk_event_get_string ((GdkEvent *)event, &string);
+ location_popup_handler (impl, string);
return TRUE;
}
@@ -1397,7 +1400,10 @@ gtk_file_chooser_widget_key_press_event (GtkWidget *widget,
if (priv->action == GTK_FILE_CHOOSER_ACTION_OPEN ||
priv->action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER)
{
- location_popup_handler (impl, event->string);
+ const char *string;
+
+ gdk_event_get_string ((GdkEvent *)event, &string);
+ location_popup_handler (impl, string);
return TRUE;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]