Commit 41d0e690 authored by Vincent Untz's avatar Vincent Untz
Browse files

na: Fix thin lines appearing when an icon is removed

We were simply never removing the NaTrayChild/GtkSocket object from the
box when the icon/GtkPlug gets removed.
parent 063ba27f
......@@ -229,13 +229,18 @@ tray_removed (NaTrayManager *manager,
TraysScreen *trays_screen)
{
NaTray *tray;
NaTrayPrivate *priv;
tray = g_hash_table_lookup (trays_screen->icon_table, icon);
if (tray == NULL)
return;
priv = tray->priv;
g_assert (tray->priv->trays_screen == trays_screen);
gtk_container_remove (GTK_CONTAINER (priv->box), icon);
g_hash_table_remove (trays_screen->icon_table, icon);
/* this will also destroy the tip associated to this icon */
g_hash_table_remove (trays_screen->tip_table, icon);
......
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