Commit d285a55c authored by François Grisez's avatar François Grisez
Browse files

Fix bug on Windows. The status icon did not disappear after Linphone quit

parent a1920739
......@@ -304,9 +304,10 @@ static void _linphone_status_icon_impl_gtk_init(LinphoneStatusIcon *si) {
si->data = icon;
}
// static void _linphone_status_icon_impl_gtk_uninit(LinphoneStatusIcon *si) {
// g_object_unref((GtkStatusIcon *)si->data);
// }
static void _linphone_status_icon_impl_gtk_uninit(LinphoneStatusIcon *si) {
GtkStatusIcon *icon = GTK_STATUS_ICON(si->data);
gtk_status_icon_set_visible(icon, FALSE);
}
static void _linphone_status_icon_impl_gtk_start(LinphoneStatusIcon *si) {
GtkStatusIcon *icon = GTK_STATUS_ICON(si->data);
......@@ -358,7 +359,7 @@ static gboolean _linphone_status_icon_impl_is_supported(
static const _LinphoneStatusIconDesc _linphone_status_icon_impl_gtk_desc = {
"gtk_status_icon",
_linphone_status_icon_impl_gtk_init,
NULL,
_linphone_status_icon_impl_gtk_uninit,
_linphone_status_icon_impl_gtk_start,
_linphone_status_icon_impl_enable_blinking,
_linphone_status_icon_impl_is_supported
......
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