diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-04-07 16:11:20 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-04-07 16:11:20 +0000 |
commit | 5e2445476461d243d6cfa865d754c1b599878528 (patch) | |
tree | 704b36b80b88c55ebf3ef535eadffdd4f25dd8d8 /gtk/gtkwindow.c | |
parent | d9cf0ff684123493fbf32e7b1128268eec7451d5 (diff) | |
download | gtk+-5e2445476461d243d6cfa865d754c1b599878528.tar.gz |
window: Stop implementing pick
Treat popovers as a special-case for now.
Diffstat (limited to 'gtk/gtkwindow.c')
-rw-r--r-- | gtk/gtkwindow.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 650eac6c3b..ab7dc0419a 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -735,12 +735,11 @@ static void popover_get_rect (GtkWindowPopover *popover, GtkWindow *window, cairo_rectangle_int_t *rect); -static GtkWidget * -gtk_window_pick (GtkWidget *widget, - gdouble x, - gdouble y) +GtkWidget * +gtk_window_pick_popover (GtkWindow *window, + double x, + double y) { - GtkWindow *window = GTK_WINDOW (widget); GtkWindowPrivate *priv = gtk_window_get_instance_private (window); GList *popovers; @@ -750,7 +749,7 @@ gtk_window_pick (GtkWidget *widget, int dest_x, dest_y; GtkWidget *picked; - gtk_widget_translate_coordinates (widget, popover->widget, + gtk_widget_translate_coordinates (GTK_WIDGET (window), popover->widget, x, y, &dest_x, &dest_y); @@ -759,7 +758,7 @@ gtk_window_pick (GtkWidget *widget, return picked; } - return GTK_WIDGET_CLASS (gtk_window_parent_class)->pick (widget, x, y); + return NULL; } static void @@ -801,7 +800,6 @@ gtk_window_class_init (GtkWindowClass *klass) widget_class->state_flags_changed = gtk_window_state_flags_changed; widget_class->style_updated = gtk_window_style_updated; widget_class->snapshot = gtk_window_snapshot; - widget_class->pick = gtk_window_pick; container_class->add = gtk_window_add; container_class->remove = gtk_window_remove; |