diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-09-07 09:29:56 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-09-07 09:29:56 -0500 |
commit | 05d0c98b1918fa97369e8b99f6848c19d7b97099 (patch) | |
tree | aa8f278f8a81546120ed6acd37da88dc0eea343d | |
parent | f1152966057612e552fb44528bb523e20a61fcac (diff) | |
download | ayatana-indicator-datetime-05d0c98b1918fa97369e8b99f6848c19d7b97099.tar.gz ayatana-indicator-datetime-05d0c98b1918fa97369e8b99f6848c19d7b97099.tar.bz2 ayatana-indicator-datetime-05d0c98b1918fa97369e8b99f6848c19d7b97099.zip |
in service.c's create_locations_section(), remove an unnecessary temporary
-rw-r--r-- | src/service.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/service.c b/src/service.c index 03a2bb4..5d90235 100644 --- a/src/service.c +++ b/src/service.c @@ -1027,18 +1027,16 @@ create_locations_section (IndicatorDatetimeService * self) struct TimeLocation * loc = l->data; if (loc->visible) { - const char * label; char * detailed_action; char * fmt; GMenuItem * menu_item; - label = loc->name; detailed_action = g_strdup_printf ("indicator.set-location::%s %s", loc->zone, loc->name); fmt = generate_full_format_string_at_time (now, loc->local_time); - menu_item = g_menu_item_new (label, detailed_action); + menu_item = g_menu_item_new (loc->name, detailed_action); g_menu_item_set_attribute (menu_item, "x-canonical-type", "s", "com.canonical.indicator.location"); g_menu_item_set_attribute (menu_item, "x-canonical-timezone", |