Skip to content
Snippets Groups Projects
Commit ec3a371c authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#3143] Set tooltip text StatusIcon only if systray icon is activated

parent 63e5e7cb
No related branches found
No related tags found
No related merge requests found
...@@ -182,13 +182,20 @@ statusicon_set_tooltip() ...@@ -182,13 +182,20 @@ statusicon_set_tooltip()
int count; int count;
gchar *tip; gchar *tip;
DEBUG("statusicon_set_tooltip 1");
if(status) {
// Add a tooltip to the system tray icon // Add a tooltip to the system tray icon
count = account_list_get_registered_accounts(); count = account_list_get_registered_accounts();
tip = g_markup_printf_escaped("%s - %s", _("SFLphone"), tip = g_markup_printf_escaped("%s - %s", _("SFLphone"),
g_markup_printf_escaped( g_markup_printf_escaped(n_("%i active account", "%i active accounts", count), count));
n_("%i active account", "%i active accounts", count), count));
gtk_status_icon_set_tooltip(status, tip); gtk_status_icon_set_tooltip(status, tip);
g_free(tip); g_free(tip);
}
DEBUG("statusicon_set_tooltip 2");
} }
void void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment