mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-24 06:38:08 +00:00
fix bug with macos attention request. It could actually work only once.
This commit is contained in:
parent
ec622c62f5
commit
dcc9539574
1 changed files with 3 additions and 3 deletions
|
|
@ -370,9 +370,9 @@ static const _LinphoneStatusIconDesc _linphone_status_icon_impl_gtk_desc = {
|
|||
static void _linphone_status_icon_impl_gtkosx_app_enable_blinking(LinphoneStatusIcon *si, gboolean val) {
|
||||
GtkosxApplication *theMacApp=gtkosx_application_get();
|
||||
gint *attention_id = (gint *)&si->data;
|
||||
if (val && *attention_id == 0) {
|
||||
*attention_id=gtkosx_application_attention_request(theMacApp,CRITICAL_REQUEST);
|
||||
} else if(!val && *attention_id != 0) {
|
||||
if (val) {
|
||||
*attention_id=gtkosx_application_attention_request(theMacApp, CRITICAL_REQUEST);
|
||||
} else if (*attention_id != 0) {
|
||||
gtkosx_application_cancel_attention_request(theMacApp, *attention_id);
|
||||
*attention_id = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue