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
...@@ -182,13 +182,20 @@ statusicon_set_tooltip() ...@@ -182,13 +182,20 @@ statusicon_set_tooltip()
int count; int count;
gchar *tip; gchar *tip;
// Add a tooltip to the system tray icon DEBUG("statusicon_set_tooltip 1");
count = account_list_get_registered_accounts();
tip = g_markup_printf_escaped("%s - %s", _("SFLphone"), if(status) {
g_markup_printf_escaped(
n_("%i active account", "%i active accounts", count), count)); // Add a tooltip to the system tray icon
gtk_status_icon_set_tooltip(status, tip); count = account_list_get_registered_accounts();
g_free(tip); 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 void
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment