[gnome-flashback] desktop: add gf_icon_get_selected
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] desktop: add gf_icon_get_selected
- Date: Mon, 11 Nov 2019 20:07:27 +0000 (UTC)
commit 34208e789804c2528b4ad068c0a1c396a94831a8
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Nov 11 21:01:59 2019 +0200
desktop: add gf_icon_get_selected
gnome-flashback/libdesktop/gf-icon.c | 12 +++++++++---
gnome-flashback/libdesktop/gf-icon.h | 4 +++-
2 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/gnome-flashback/libdesktop/gf-icon.c b/gnome-flashback/libdesktop/gf-icon.c
index 00f1ebb..6fa075f 100644
--- a/gnome-flashback/libdesktop/gf-icon.c
+++ b/gnome-flashback/libdesktop/gf-icon.c
@@ -382,6 +382,12 @@ gf_icon_new (GFile *file,
NULL);
}
+GFile *
+gf_icon_get_file (GfIcon *self)
+{
+ return self->file;
+}
+
void
gf_icon_set_selected (GfIcon *self,
gboolean selected,
@@ -396,8 +402,8 @@ gf_icon_set_selected (GfIcon *self,
g_signal_emit (self, icon_signals[SELECTED], 0, flags);
}
-GFile *
-gf_icon_get_file (GfIcon *self)
+gboolean
+gf_icon_get_selected (GfIcon *self)
{
- return self->file;
+ return self->selected;
}
diff --git a/gnome-flashback/libdesktop/gf-icon.h b/gnome-flashback/libdesktop/gf-icon.h
index 2ff4961..faa2e8b 100644
--- a/gnome-flashback/libdesktop/gf-icon.h
+++ b/gnome-flashback/libdesktop/gf-icon.h
@@ -36,11 +36,13 @@ G_DECLARE_FINAL_TYPE (GfIcon, gf_icon, GF, ICON, GtkButton)
GtkWidget *gf_icon_new (GFile *file,
GFileInfo *info);
+GFile *gf_icon_get_file (GfIcon *self);
+
void gf_icon_set_selected (GfIcon *self,
gboolean selected,
GfIconSelectedFlags flags);
-GFile *gf_icon_get_file (GfIcon *self);
+gboolean gf_icon_get_selected (GfIcon *self);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]