set notification close callback before requesting user permission
This commit is contained in:
parent
4fdca64030
commit
ee4442f964
4 changed files with 33 additions and 35 deletions
|
@ -82,8 +82,10 @@ LibnotifyNotification::LibnotifyNotification(NotificationDelegate* delegate,
|
|||
}
|
||||
|
||||
LibnotifyNotification::~LibnotifyNotification() {
|
||||
g_signal_handlers_disconnect_by_data(notification_, this);
|
||||
g_object_unref(notification_);
|
||||
if (notification_) {
|
||||
g_signal_handlers_disconnect_by_data(notification_, this);
|
||||
g_object_unref(notification_);
|
||||
}
|
||||
}
|
||||
|
||||
void LibnotifyNotification::Show(const base::string16& title,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue