[grilo-plugins/wip/carlosg/tracker3: 15/41] tracker3: Drop GrlTrackerSource::constructed vfunc
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins/wip/carlosg/tracker3: 15/41] tracker3: Drop GrlTrackerSource::constructed vfunc
- Date: Sun, 28 Jun 2020 17:09:12 +0000 (UTC)
commit 8864ce6eb06d5702aa791457c40177e236a2c449
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri May 22 11:50:05 2020 +0200
tracker3: Drop GrlTrackerSource::constructed vfunc
This only unsets the private connection, which is rather wrong.
Let it live so it can be used during the object lifetime.
src/tracker3/grl-tracker-source.c | 15 ---------------
1 file changed, 15 deletions(-)
---
diff --git a/src/tracker3/grl-tracker-source.c b/src/tracker3/grl-tracker-source.c
index d2a535ef..1af6a4a7 100644
--- a/src/tracker3/grl-tracker-source.c
+++ b/src/tracker3/grl-tracker-source.c
@@ -64,8 +64,6 @@ static void grl_tracker_source_set_property (GObject *object,
static void grl_tracker_source_finalize (GObject *object);
-static void grl_tracker_source_constructed (GObject *object);
-
/* ===================== Globals ================= */
/* shared data across */
@@ -96,7 +94,6 @@ grl_tracker_source_class_init (GrlTrackerSourceClass * klass)
g_class->finalize = grl_tracker_source_finalize;
g_class->set_property = grl_tracker_source_set_property;
- g_class->constructed = grl_tracker_source_constructed;
source_class->cancel = grl_tracker_source_cancel;
source_class->supported_keys = grl_tracker_supported_keys;
@@ -137,18 +134,6 @@ grl_tracker_source_init (GrlTrackerSource *source)
priv->operations = g_hash_table_new (g_direct_hash, g_direct_equal);
}
-static void
-grl_tracker_source_constructed (GObject *object)
-{
- GrlTrackerSource *self;
-
- self = GRL_TRACKER_SOURCE (object);
-
- g_clear_object (&self->priv->tracker_connection);
-
- G_OBJECT_CLASS (grl_tracker_source_parent_class)->constructed (object);
-}
-
static void
grl_tracker_source_finalize (GObject *object)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]