summaryrefslogtreecommitdiff
path: root/gtk/gtktooltipwindow.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-02-29 09:46:13 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-03-11 19:35:55 -0400
commit4e8dfdff2e4ea51a20eb5862a07b38f974e5fd39 (patch)
tree38b85a7e49755cd21be7a6934770336ffce18531 /gtk/gtktooltipwindow.c
parentb670bf54f70a1f2a20ef6f2268c9f9f15b90423e (diff)
downloadgtk+-4e8dfdff2e4ea51a20eb5862a07b38f974e5fd39.tar.gz
tooltip: Use GdkPopup
Diffstat (limited to 'gtk/gtktooltipwindow.c')
-rw-r--r--gtk/gtktooltipwindow.c16
1 files changed, 8 insertions, 8 deletions
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 =