aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-04-19 12:09:03 -0300
committerRobert Tari <robert@tari.in>2021-07-06 02:05:19 +0200
commit14fbc83d449bbf2a4ed4d0716a37d6b4c433d55e (patch)
tree827e4cc8429ab9e25bc574673ce768036d00ff2d /src
parent13978702ac61845927889986310085e8f90821da (diff)
downloadayatana-indicator-datetime-14fbc83d449bbf2a4ed4d0716a37d6b4c433d55e.tar.gz
ayatana-indicator-datetime-14fbc83d449bbf2a4ed4d0716a37d6b4c433d55e.tar.bz2
ayatana-indicator-datetime-14fbc83d449bbf2a4ed4d0716a37d6b4c433d55e.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;