diff options
author | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2016-03-21 14:32:39 -0300 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-08-29 14:37:39 +0200 |
commit | 7fde2181c74fada11d537e2f09ccbb8e5745ae8c (patch) | |
tree | db344aca03d90cf80eab706229944a956e8ef223 /src/menu.cpp | |
parent | bbf8fdba0f3a8d57dcea96d2cfbc55e833c39adb (diff) | |
download | ayatana-indicator-datetime-7fde2181c74fada11d537e2f09ccbb8e5745ae8c.tar.gz ayatana-indicator-datetime-7fde2181c74fada11d537e2f09ccbb8e5745ae8c.tar.bz2 ayatana-indicator-datetime-7fde2181c74fada11d537e2f09ccbb8e5745ae8c.zip |
Make sure that the ocurrence time is used to build the url to launch external application.
Diffstat (limited to 'src/menu.cpp')
-rw-r--r-- | src/menu.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/menu.cpp b/src/menu.cpp index 0cd3f9b..b1ac75c 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -414,9 +414,12 @@ private: if (!appt.color.empty()) g_menu_item_set_attribute (menu_item, "x-ayatana-color", "s", appt.color.c_str()); - if (action_name != nullptr) + if (action_name != nullptr) { g_menu_item_set_action_and_target_value (menu_item, action_name, - g_variant_new_string (appt.uid.c_str())); + g_variant_new ("(sx)", + appt.uid.c_str(), + unix_time)); + } g_menu_append_item (menu, menu_item); g_object_unref (menu_item); |