forked from AuroraMiddleware/gtk
file chooser widget: Covert to GdkEvent API
This commit is contained in:
parent
2246387d21
commit
c586a6486f
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user