Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
ec3a371c
Commit
ec3a371c
authored
Apr 07, 2010
by
Alexandre Savard
Browse files
[#3143] Set tooltip text StatusIcon only if systray icon is activated
parent
63e5e7cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
sflphone-client-gnome/src/statusicon.c
View file @
ec3a371c
...
...
@@ -182,13 +182,20 @@ statusicon_set_tooltip()
int
count
;
gchar
*
tip
;
// Add a tooltip to the system tray icon
count
=
account_list_get_registered_accounts
();
tip
=
g_markup_printf_escaped
(
"%s - %s"
,
_
(
"SFLphone"
),
g_markup_printf_escaped
(
n_
(
"%i active account"
,
"%i active accounts"
,
count
),
count
));
gtk_status_icon_set_tooltip
(
status
,
tip
);
g_free
(
tip
);
DEBUG
(
"statusicon_set_tooltip 1"
);
if
(
status
)
{
// Add a tooltip to the system tray icon
count
=
account_list_get_registered_accounts
();
tip
=
g_markup_printf_escaped
(
"%s - %s"
,
_
(
"SFLphone"
),
g_markup_printf_escaped
(
n_
(
"%i active account"
,
"%i active accounts"
,
count
),
count
));
gtk_status_icon_set_tooltip
(
status
,
tip
);
g_free
(
tip
);
}
DEBUG
(
"statusicon_set_tooltip 2"
);
}
void
...
...
Write
Preview
Supports
Markdown
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