file chooser widget: Covert to GdkEvent API

This commit is contained in:
Matthias Clasen 2017-08-25 22:53:04 -04:00 committed by Carlos Garnacho
parent 2246387d21
commit c586a6486f

View File

@ -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_OPEN ||
priv->action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER)) 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; return TRUE;
} }
@ -1397,7 +1400,10 @@ gtk_file_chooser_widget_key_press_event (GtkWidget *widget,
if (priv->action == GTK_FILE_CHOOSER_ACTION_OPEN || if (priv->action == GTK_FILE_CHOOSER_ACTION_OPEN ||
priv->action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER) 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; return TRUE;
} }
} }