rygel r310 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r310 - trunk/src/rygel
- Date: Wed, 26 Nov 2008 17:00:28 +0000 (UTC)
Author: zeeshanak
Date: Wed Nov 26 17:00:28 2008
New Revision: 310
URL: http://svn.gnome.org/viewvc/rygel?rev=310&view=rev
Log:
Turn MainLoop into a prop of the Main class.
Modified:
trunk/src/rygel/rygel-main.vala
Modified: trunk/src/rygel/rygel-main.vala
==============================================================================
--- trunk/src/rygel/rygel-main.vala (original)
+++ trunk/src/rygel/rygel-main.vala Wed Nov 26 17:00:28 2008
@@ -32,10 +32,13 @@
private MediaServerFactory ms_factory;
private List<MediaServer> media_servers;
+ private MainLoop main_loop;
+
public Main () throws GLib.Error {
this.media_servers = new List<MediaServer> ();
this.plugin_loader = new PluginLoader ();
this.ms_factory = new MediaServerFactory ();
+ this.main_loop = new GLib.MainLoop (null, false);
this.plugin_loader.plugin_available += this.on_plugin_loaded;
}
@@ -43,8 +46,7 @@
public void run () {
this.plugin_loader.load_plugins ();
- var main_loop = new GLib.MainLoop (null, false);
- main_loop.run ();
+ this.main_loop.run ();
}
private void on_plugin_loaded (PluginLoader plugin_loader,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]