From 4e8dfdff2e4ea51a20eb5862a07b38f974e5fd39 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 29 Feb 2020 09:46:13 -0500 Subject: tooltip: Use GdkPopup --- gtk/gtktooltipwindow.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'gtk/gtktooltipwindow.c') diff --git a/gtk/gtktooltipwindow.c b/gtk/gtktooltipwindow.c index bd95379fb0..10dfdad65d 100644 --- a/gtk/gtktooltipwindow.c +++ b/gtk/gtktooltipwindow.c @@ -136,10 +136,10 @@ gtk_tooltip_window_relayout (GtkTooltipWindow *window) gtk_widget_get_preferred_size (GTK_WIDGET (window), NULL, &req); layout = create_popup_layout (window); - gdk_surface_present_popup (window->surface, - MAX (req.width, 1), - MAX (req.height, 1), - layout); + gdk_popup_present (GDK_POPUP (window->surface), + MAX (req.width, 1), + MAX (req.height, 1), + layout); gdk_popup_layout_unref (layout); } @@ -284,10 +284,10 @@ gtk_tooltip_window_map (GtkWidget *widget) GtkWidget *child; layout = create_popup_layout (window); - gdk_surface_present_popup (window->surface, - gdk_surface_get_width (window->surface), - gdk_surface_get_height (window->surface), - layout); + gdk_popup_present (GDK_POPUP (window->surface), + gdk_surface_get_width (window->surface), + gdk_surface_get_height (window->surface), + layout); gdk_popup_layout_unref (layout); window->surface_transform_changed_cb = -- cgit v1.2.1