diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-01-22 00:41:16 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-01-22 00:41:16 -0600 |
commit | f0fee18c0baf7ef0fb27351db716ee3708c021c6 (patch) | |
tree | b40da926d2c58d45094c1604d9b8514239e6f08e /src/main.cpp | |
parent | d611929649cc4ef6b04ad9c453f14c85e1108842 (diff) | |
download | ayatana-indicator-datetime-f0fee18c0baf7ef0fb27351db716ee3708c021c6.tar.gz ayatana-indicator-datetime-f0fee18c0baf7ef0fb27351db716ee3708c021c6.tar.bz2 ayatana-indicator-datetime-f0fee18c0baf7ef0fb27351db716ee3708c021c6.zip |
copyediting: rename Service as Exporter & tweak comments
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 6a56163..50d5241 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -38,7 +38,7 @@ main(int /*argc*/, char** /*argv*/) // It can be removed when https://bugzilla.gnome.org/show_bug.cgi?id=674885 is fixed. g_type_ensure(G_TYPE_DBUS_CONNECTION); - // init i18n + // boilerplate i18n setlocale(LC_ALL, ""); bindtextdomain(GETTEXT_PACKAGE, GNOMELOCALEDIR); textdomain(GETTEXT_PACKAGE); @@ -47,7 +47,7 @@ main(int /*argc*/, char** /*argv*/) if(!notify_init("indicator-datetime-service")) g_critical("libnotify initialization failed"); - // build the state and menu factory + // build the state and actions for the MenuFactory to use std::shared_ptr<State> state(new LiveState); std::shared_ptr<Actions> actions(new LiveActions(state)); MenuFactory factory(actions, state); @@ -56,7 +56,7 @@ main(int /*argc*/, char** /*argv*/) std::vector<std::shared_ptr<Menu>> menus; menus.push_back(factory.buildMenu(Menu::Desktop)); - // export them + // export them & run until we lose the busname auto loop = g_main_loop_new(nullptr, false); Exporter exporter; exporter.name_lost.connect([loop](){ |