Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
bf3293eb
Commit
bf3293eb
authored
Dec 22, 2015
by
Gautier Pelloux-Prayer
Browse files
gtk: hide badge if there is no unread message
parent
7b5da68f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
gtk/mac.m
gtk/mac.m
+3
-2
No files found.
gtk/mac.m
View file @
bf3293eb
...
...
@@ -39,8 +39,9 @@ int unread_messages_count() {
}
void
linphone_gtk_update_badge_count
()
{
ms_error
(
"%d
\n
"
,
unread_messages_count
());
[[
NSApp
dockTile
]
setBadgeLabel
:[
NSString
stringWithFormat
:
@"%d"
,
unread_messages_count
()]];
int
count
=
unread_messages_count
();
NSString
*
badgeStr
=
(
count
>
0
)
?
[
NSString
stringWithFormat
:
@"%d"
,
count
]
:
@""
;
[[
NSApp
dockTile
]
setBadgeLabel
:
badgeStr
];
}
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment