[gtk/present-toplevel: 8/54] tooltip: Use GdkPopup
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel: 8/54] tooltip: Use GdkPopup
- Date: Sun, 1 Mar 2020 19:34:22 +0000 (UTC)
commit fef15aec4e311924989779f2174c7a48a93b475e
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Feb 29 09:46:13 2020 -0500
tooltip: Use GdkPopup
gtk/gtktooltipwindow.c | 16 ++++++++--------
1 file 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 =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]