From 56430abd3a0b5a0f4f5a92c24c92a423baf562ec Mon Sep 17 00:00:00 2001 From: Jens Georg Date: Fri, 16 Oct 2009 20:36:38 +0200 Subject: [PATCH] media-export: small refactor Idle.add is always used in conjunction with do_update, so just move it inside --- src/plugins/media-export/rygel-media-export-harvester.vala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/media-export/rygel-media-export-harvester.vala b/src/plugins/media-export/rygel-media-export-harvester.vala index b0e5685..c083b30 100644 --- a/src/plugins/media-export/rygel-media-export-harvester.vala +++ b/src/plugins/media-export/rygel-media-export-harvester.vala @@ -167,7 +167,6 @@ public class Rygel.MediaExportHarvester : GLib.Object { cleanup_database (this.containers.peek_head() as DummyContainer); this.do_update (); - Idle.add(this.on_idle); } void cleanup_database (DummyContainer container) { @@ -292,7 +291,6 @@ public class Rygel.MediaExportHarvester : GLib.Object { this.files.pop_head (); this.do_update (); - Idle.add(this.on_idle); } } @@ -306,7 +304,6 @@ public class Rygel.MediaExportHarvester : GLib.Object { if (file == entry.file) { this.files.pop_head (); this.do_update (); - Idle.add(this.on_idle); } } @@ -316,5 +313,6 @@ public class Rygel.MediaExportHarvester : GLib.Object { this.containers.peek_head ().updated (); this.containers.pop_head (); } + Idle.add(this.on_idle); } } -- 2.7.4