aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-04-19 12:09:03 -0300
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-29 14:37:39 +0200
commit8d5fb6cbdab5c7b12441fbce68821b91e1645132 (patch)
tree6e41a3c63d0a0d4cc884c018b403414fa653b8cb /src
parentbb7b522ef52b240718f33f37b577bacc4fea2db6 (diff)
downloadayatana-indicator-datetime-8d5fb6cbdab5c7b12441fbce68821b91e1645132.tar.gz
ayatana-indicator-datetime-8d5fb6cbdab5c7b12441fbce68821b91e1645132.tar.bz2
ayatana-indicator-datetime-8d5fb6cbdab5c7b12441fbce68821b91e1645132.zip
Fixed crash when clicking on messaging menu.
Diffstat (limited to 'src')
-rw-r--r--src/notifications.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/notifications.cpp b/src/notifications.cpp
index 2d22087..5b64471 100644
--- a/src/notifications.cpp
+++ b/src/notifications.cpp
@@ -291,7 +291,7 @@ public:
nullptr,
data.m_body.c_str(),
data.m_start_time * 1000000), // secs -> microsecs
- g_object_ref);
+ g_object_unref);
g_object_unref(icon);
if (msg)
{
@@ -370,13 +370,13 @@ private:
static_cast<Impl*>(gself)->remove_closed_notification(GPOINTER_TO_INT(gkey));
}
- static void on_message_activated (MessagingMenuMessage *,
- const char *actionId,
+ static void on_message_activated (MessagingMenuMessage *msg,
+ const char *,
GVariant *,
gpointer gself)
{
auto self = static_cast<Impl*>(gself);
- auto it = self->m_messaging_messages.find(actionId);
+ auto it = self->m_messaging_messages.find(messaging_menu_message_get_id(msg));
g_return_if_fail (it != self->m_messaging_messages.end());
const auto& ndata = it->second;