[gnome-flashback] desktop: change GfIconView parent class to GtkEventBox
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] desktop: change GfIconView parent class to GtkEventBox
- Date: Thu, 31 Oct 2019 20:58:59 +0000 (UTC)
commit b694d9ca39a60f84e93076d500e63b3457cdc221
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Oct 31 00:28:25 2019 +0200
desktop: change GfIconView parent class to GtkEventBox
gnome-flashback/libdesktop/gf-icon-view.c | 9 +++++++--
gnome-flashback/libdesktop/gf-icon-view.h | 2 +-
2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/gnome-flashback/libdesktop/gf-icon-view.c b/gnome-flashback/libdesktop/gf-icon-view.c
index 802356e..eb137bb 100644
--- a/gnome-flashback/libdesktop/gf-icon-view.c
+++ b/gnome-flashback/libdesktop/gf-icon-view.c
@@ -20,10 +20,12 @@
struct _GfIconView
{
- GtkFixed parent;
+ GtkEventBox parent;
+
+ GtkWidget *fixed;
};
-G_DEFINE_TYPE (GfIconView, gf_icon_view, GTK_TYPE_FIXED)
+G_DEFINE_TYPE (GfIconView, gf_icon_view, GTK_TYPE_EVENT_BOX)
static void
gf_icon_view_class_init (GfIconViewClass *self_class)
@@ -33,6 +35,9 @@ gf_icon_view_class_init (GfIconViewClass *self_class)
static void
gf_icon_view_init (GfIconView *self)
{
+ self->fixed = gtk_fixed_new ();
+ gtk_container_add (GTK_CONTAINER (self), self->fixed);
+ gtk_widget_show (self->fixed);
}
GtkWidget *
diff --git a/gnome-flashback/libdesktop/gf-icon-view.h b/gnome-flashback/libdesktop/gf-icon-view.h
index 966ab74..2d365e5 100644
--- a/gnome-flashback/libdesktop/gf-icon-view.h
+++ b/gnome-flashback/libdesktop/gf-icon-view.h
@@ -23,7 +23,7 @@
G_BEGIN_DECLS
#define GF_TYPE_ICON_VIEW (gf_icon_view_get_type ())
-G_DECLARE_FINAL_TYPE (GfIconView, gf_icon_view, GF, ICON_VIEW, GtkFixed)
+G_DECLARE_FINAL_TYPE (GfIconView, gf_icon_view, GF, ICON_VIEW, GtkEventBox)
GtkWidget *gf_icon_view_new (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]