[Xfce4-commits] <xfce4-indicator-plugin:master> Remove the old icon, not the label, when icon is updated.

Alistair Buxton noreply at xfce.org
Fri Nov 8 00:08:02 CET 2013


Updating branch refs/heads/master
         to b7a42ad057feb1707611aa931f6bd8dbd532d169 (commit)
       from c551c14a5c415d7bcb67975a3ca013a9318a71e7 (commit)

commit b7a42ad057feb1707611aa931f6bd8dbd532d169
Author: Alistair Buxton <a.j.buxton at gmail.com>
Date:   Thu Nov 7 23:02:22 2013 +0000

    Remove the old icon, not the label, when icon is updated.

 panel-plugin/indicator-button-box.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/panel-plugin/indicator-button-box.c b/panel-plugin/indicator-button-box.c
index 1118a52..38ead57 100644
--- a/panel-plugin/indicator-button-box.c
+++ b/panel-plugin/indicator-button-box.c
@@ -280,7 +280,7 @@ indicator_button_box_set_image (IndicatorButtonBox  *box,
 
   if (box->icon != NULL)
     {
-      gtk_container_remove (GTK_CONTAINER (box), box->label);
+      gtk_container_remove (GTK_CONTAINER (box), box->icon);
       g_object_unref (G_OBJECT (box->icon));
     }
   box->icon = GTK_WIDGET (image);


More information about the Xfce4-commits mailing list