aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-bluetooth-service.vala
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-07-31 23:09:41 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-07-31 23:09:41 -0500
commit39263df5ab76e2f444e5dbb702512f741c56830c (patch)
tree0c135e12007e9ae868782215700c0e4f72b22960 /src/indicator-bluetooth-service.vala
parent761a9fff03812af3c0beb26da1094c69fc3a0a72 (diff)
downloadayatana-indicator-bluetooth-39263df5ab76e2f444e5dbb702512f741c56830c.tar.gz
ayatana-indicator-bluetooth-39263df5ab76e2f444e5dbb702512f741c56830c.tar.bz2
ayatana-indicator-bluetooth-39263df5ab76e2f444e5dbb702512f741c56830c.zip
add main() to its own file
Diffstat (limited to 'src/indicator-bluetooth-service.vala')
-rw-r--r--src/indicator-bluetooth-service.vala28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/indicator-bluetooth-service.vala b/src/indicator-bluetooth-service.vala
index e9d8e76..f65c538 100644
--- a/src/indicator-bluetooth-service.vala
+++ b/src/indicator-bluetooth-service.vala
@@ -394,34 +394,6 @@ private void show_control_center (string panel)
}
}
-public static int main (string[] args)
-{
- Intl.setlocale (LocaleCategory.ALL, "");
- Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.GNOMELOCALEDIR);
- Intl.bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8");
- Intl.textdomain (Config.GETTEXT_PACKAGE);
-
- var loop = new MainLoop ();
-
- BluetoothIndicator indicator;
- try
- {
- indicator = new BluetoothIndicator ();
- }
- catch (Error e)
- {
- warning ("Failed to start bluetooth indicator service: %s", e.message);
- return Posix.EXIT_FAILURE;
- }
- // FIXMEindicator.shutdown.connect (() => { loop.quit (); });
-
- loop.run ();
-
- indicator = null;
-
- return Posix.EXIT_SUCCESS;
-}
-
[DBus (name = "com.canonical.indicator.bluetooth.service")]
private class BluetoothService : Object
{