aboutsummaryrefslogtreecommitdiff
path: root/src/datetime-service.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-02-15 16:31:31 -0600
committerCharles Kerr <charles.kerr@canonical.com>2012-02-15 16:31:31 -0600
commitb18a7b815228aa5fdbfee6272fdcc621becbf3b8 (patch)
treea0ac50094bd2e0c2d408e5828ea85b8ed7e09b81 /src/datetime-service.c
parented432b431805543fd27b991aeab7908fabe74ae0 (diff)
parent78e082682d5d833fd271899b67d6a203acffa803 (diff)
downloadayatana-indicator-datetime-b18a7b815228aa5fdbfee6272fdcc621becbf3b8.tar.gz
ayatana-indicator-datetime-b18a7b815228aa5fdbfee6272fdcc621becbf3b8.tar.bz2
ayatana-indicator-datetime-b18a7b815228aa5fdbfee6272fdcc621becbf3b8.zip
lp:~ballogy/indicator-datetime/make-ccpanel-optional
Diffstat (limited to 'src/datetime-service.c')
-rw-r--r--src/datetime-service.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index dfce637..ef43594 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -54,6 +54,11 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include "settings-shared.h"
#include "utils.h"
+#ifdef HAVE_CCPANEL
+ #define SETTINGS_APP_INVOCATION "gnome-control-center indicator-datetime"
+#else
+ #define SETTINGS_APP_INVOCATION "gnome-control-center datetime"
+#endif
static void geo_create_client (GeoclueMaster * master, GeoclueMasterClient * client, gchar * path, GError * error, gpointer user_data);
static gboolean update_appointment_menu_items (gpointer user_data);
@@ -1167,7 +1172,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), "gnome-control-center indicator-datetime");
+ g_signal_connect(G_OBJECT(settings), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(activate_cb), SETTINGS_APP_INVOCATION);
dbusmenu_menuitem_child_append(root, settings);
g_idle_add(check_for_timeadmin, NULL);
}