~mardy/ubuntu-system-settings-online-accounts/apparmor-1489489

« back to all changes in this revision

Viewing changes to online-accounts-ui/notification.cpp

  • Committer: Florian Boucault
  • Date: 2016-07-15 13:41:19 UTC
  • mto: This revision was merged to the branch mainline in revision 378.
  • Revision ID: florian.boucault@canonical.com-20160715134119-3r4v9qjlthvbw1s7
Use a static function instead of a pointer member function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
 
53
53
} // namespace
54
54
 
 
55
static void onNotificationClosed(Notification *notification) {
 
56
    Q_EMIT notification->closed();
 
57
}
 
58
 
55
59
NotificationPrivate::NotificationPrivate(const QString &summary,
56
60
                                         const QString &body,
57
61
                                         Notification *notification):
70
74
                                             bodyUtf8.constData(),
71
75
                                             NULL);
72
76
    g_signal_connect_swapped(m_notification, "closed",
73
 
                             G_CALLBACK(&Notification::closed), notification);
 
77
                             G_CALLBACK(onNotificationClosed), notification);
74
78
}
75
79
 
76
80
NotificationPrivate::~NotificationPrivate()