[gnome-panel] na: Fix thin lines appearing when an icon is removed



commit 41d0e690edfe952a4ff8b8f6ea01cb9cb09695f7
Author: Vincent Untz <vuntz gnome org>
Date:   Wed Apr 6 11:11:54 2011 +0200

    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.

 applets/notification_area/na-tray.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/applets/notification_area/na-tray.c b/applets/notification_area/na-tray.c
index 8fd20e9..d77d068 100644
--- a/applets/notification_area/na-tray.c
+++ b/applets/notification_area/na-tray.c
@@ -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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]