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()
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
......
Markdown is supported
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