mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 06:40:08 +00:00
Merge branch 'file-chooser-context-menu' into 'main'
filechooser: Fix context menus Closes #5554 See merge request GNOME/gtk!5472
This commit is contained in:
commit
b710df6f45
@ -7226,13 +7226,18 @@ file_chooser_widget_clicked (GtkEventController *controller,
|
|||||||
int n_press,
|
int n_press,
|
||||||
double x,
|
double x,
|
||||||
double y,
|
double y,
|
||||||
gpointer user_data)
|
GtkFileChooserWidget *impl)
|
||||||
{
|
{
|
||||||
GtkWidget *widget = user_data;
|
GtkWidget *widget = GTK_WIDGET (impl);
|
||||||
|
GtkWidget *child;
|
||||||
|
|
||||||
|
child = gtk_widget_pick (widget, x, y, 0);
|
||||||
|
if (gtk_widget_is_ancestor (child, impl->browse_files_stack))
|
||||||
|
{
|
||||||
gtk_gesture_set_state (GTK_GESTURE (controller), GTK_EVENT_SEQUENCE_CLAIMED);
|
gtk_gesture_set_state (GTK_GESTURE (controller), GTK_EVENT_SEQUENCE_CLAIMED);
|
||||||
popup_menu (widget, x, y);
|
popup_menu (widget, x, y);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
file_chooser_widget_long_pressed (GtkEventController *controller,
|
file_chooser_widget_long_pressed (GtkEventController *controller,
|
||||||
|
Loading…
Reference in New Issue
Block a user