[Xfce4-commits] <xfce4-indicator-plugin:master> Removed unused on_label_changed

Andrzej noreply at xfce.org
Fri Mar 23 15:40:08 CET 2012


Updating branch refs/heads/master
         to 43120ffe21201a436401db8f093cbe614787e263 (commit)
       from 92aa37ef3025aeffe80679e83c662b187f00cb93 (commit)

commit 43120ffe21201a436401db8f093cbe614787e263
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Wed Mar 21 18:34:05 2012 +0900

    Removed unused on_label_changed
    
    We pass whole GtkLabel to the button so there is no need to listen
    to the label text changes.

 panel-plugin/indicator.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/panel-plugin/indicator.c b/panel-plugin/indicator.c
index 7d265f5..3845715 100644
--- a/panel-plugin/indicator.c
+++ b/panel-plugin/indicator.c
@@ -303,15 +303,6 @@ menu_deactivate (GtkMenu *menu,
 }
 
 static void
-on_label_changed (GtkLabel *label, GParamSpec *pspec, XfceIndicatorButton *button)
-{
-  g_return_if_fail (GTK_IS_LABEL (label));
-  g_return_if_fail (XFCE_IS_INDICATOR_BUTTON (button));
-
-  xfce_indicator_button_set_label (button, label);
-}
-
-static void
 indicator_construct (XfcePanelPlugin *plugin)
 {
   IndicatorPlugin *indicator;
@@ -366,10 +357,8 @@ entry_added (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer user_d
   if (entry->image != NULL)
     xfce_indicator_button_set_image(XFCE_INDICATOR_BUTTON(button), entry->image);
 
-  if (entry->label != NULL) {
+  if (entry->label != NULL)
     xfce_indicator_button_set_label(XFCE_INDICATOR_BUTTON(button), entry->label);
-    g_signal_connect(G_OBJECT(entry->label), "notify::label", G_CALLBACK(on_label_changed), button);
-  }
 
   if (entry->menu != NULL)
   {


More information about the Xfce4-commits mailing list