[gnome-flashback] desktop: add gf_icon_get_press
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] desktop: add gf_icon_get_press
- Date: Sun, 24 Nov 2019 16:49:19 +0000 (UTC)
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]