[gnome-flashback] desktop: add gf_icon_get_press



commit d4d3565616596de8f304197c3d44d361c3d7098d
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Nov 24 16:29:00 2019 +0200

    desktop: add gf_icon_get_press

 gnome-flashback/libdesktop/gf-icon.c | 13 +++++++++++++
 gnome-flashback/libdesktop/gf-icon.h |  4 ++++
 2 files changed, 17 insertions(+)
---
diff --git a/gnome-flashback/libdesktop/gf-icon.c b/gnome-flashback/libdesktop/gf-icon.c
index 9425da8..608aecd 100644
--- a/gnome-flashback/libdesktop/gf-icon.c
+++ b/gnome-flashback/libdesktop/gf-icon.c
@@ -1449,6 +1449,19 @@ gf_icon_get_image (GfIcon *self)
   return priv->image;
 }
 
+void
+gf_icon_get_press (GfIcon *self,
+                   double *x,
+                   double *y)
+{
+  GfIconPrivate *priv;
+
+  priv = gf_icon_get_instance_private (self);
+
+  *x = priv->press_x;
+  *y = priv->press_y;
+}
+
 void
 gf_icon_set_file (GfIcon *self,
                   GFile  *file)
diff --git a/gnome-flashback/libdesktop/gf-icon.h b/gnome-flashback/libdesktop/gf-icon.h
index dbf97a6..ddfdf9a 100644
--- a/gnome-flashback/libdesktop/gf-icon.h
+++ b/gnome-flashback/libdesktop/gf-icon.h
@@ -45,6 +45,10 @@ GtkWidget  *gf_icon_new               (GfIconView *icon_view,
 
 GtkWidget  *gf_icon_get_image         (GfIcon     *self);
 
+void        gf_icon_get_press         (GfIcon     *self,
+                                       double     *x,
+                                       double     *y);
+
 void        gf_icon_set_file          (GfIcon     *self,
                                        GFile      *file);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]