diff options
author | Michael Terry <michael.terry@canonical.com> | 2011-06-29 14:10:25 +0100 |
---|---|---|
committer | Michael Terry <michael.terry@canonical.com> | 2011-06-29 14:10:25 +0100 |
commit | 5d36567ca57ebd73e7a759c83542d19b2aa8814d (patch) | |
tree | a2caf07a27872e5736e27a7843a21bda24d31ba0 /src/datetime-service.c | |
parent | f57128cae925df888e1e0cafb9ba988c665ecff8 (diff) | |
download | ayatana-indicator-datetime-5d36567ca57ebd73e7a759c83542d19b2aa8814d.tar.gz ayatana-indicator-datetime-5d36567ca57ebd73e7a759c83542d19b2aa8814d.tar.bz2 ayatana-indicator-datetime-5d36567ca57ebd73e7a759c83542d19b2aa8814d.zip |
port preferences to be a control-center panel
Diffstat (limited to 'src/datetime-service.c')
-rw-r--r-- | src/datetime-service.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c index 30bf9eb..52add7d 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -1024,13 +1024,13 @@ check_for_timeadmin (gpointer user_data) { g_return_val_if_fail (settings != NULL, FALSE); - gchar * timeadmin = g_find_program_in_path("indicator-datetime-preferences"); + gchar * timeadmin = g_find_program_in_path("gnome-control-center"); if (timeadmin != NULL) { - g_debug("Found the indicator-datetime-preferences application: %s", timeadmin); + g_debug("Found the gnome-control-center application: %s", timeadmin); dbusmenu_menuitem_property_set_bool(settings, DBUSMENU_MENUITEM_PROP_ENABLED, TRUE); g_free(timeadmin); } else { - g_debug("Unable to find indicator-datetime-preferences app."); + g_debug("Unable to find gnome-control-center app."); dbusmenu_menuitem_property_set_bool(settings, DBUSMENU_MENUITEM_PROP_ENABLED, FALSE); } @@ -1113,7 +1113,7 @@ build_menus (DbusmenuMenuitem * root) dbusmenu_menuitem_property_set (settings, DBUSMENU_MENUITEM_PROP_LABEL, _("Time & Date Settings...")); /* insensitive until we check for available apps */ dbusmenu_menuitem_property_set_bool(settings, DBUSMENU_MENUITEM_PROP_ENABLED, FALSE); - g_signal_connect(G_OBJECT(settings), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(activate_cb), "indicator-datetime-preferences"); + g_signal_connect(G_OBJECT(settings), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(activate_cb), "gnome-control-center indicator-datetime"); dbusmenu_menuitem_child_append(root, settings); g_idle_add(check_for_timeadmin, NULL); |