[gtk/present-toplevel-2: 68/70] gtkdragicon: Use drag icon api
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 68/70] gtkdragicon: Use drag icon api
- Date: Wed, 4 Mar 2020 00:11:11 +0000 (UTC)
commit 7c2e96e5f79ead3aa18ed1035341184d9c9a2de9
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Mar 3 15:56:23 2020 -0800
gtkdragicon: Use drag icon api
gtk/gtkdragicon.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkdragicon.c b/gtk/gtkdragicon.c
index a01e088946..c43af14ac0 100644
--- a/gtk/gtkdragicon.c
+++ b/gtk/gtkdragicon.c
@@ -141,9 +141,9 @@ gtk_drag_icon_move_resize (GtkDragIcon *icon)
if (icon->surface)
{
gtk_widget_get_preferred_size (GTK_WIDGET (icon), NULL, &req);
- gdk_surface_resize (icon->surface,
- MAX (1, req.width),
- MAX (1, req.height));
+ gdk_drag_icon_present (GDK_DRAG_ICON (icon->surface),
+ MAX (1, req.width),
+ MAX (1, req.height));
}
}
@@ -222,7 +222,7 @@ gtk_drag_icon_map (GtkWidget *widget)
{
GtkDragIcon *icon = GTK_DRAG_ICON (widget);
- gdk_surface_show (icon->surface);
+ gtk_drag_icon_move_resize (icon);
GTK_WIDGET_CLASS (gtk_drag_icon_parent_class)->map (widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]