[Xfce4-commits] <xfce4-indicator-plugin:master> fix some warnings

Mark Trompell noreply at xfce.org
Tue Oct 25 08:24:02 CEST 2011


Updating branch refs/heads/master
         to 49fb5c4387ebd048f2173a803a19442105447a52 (commit)
       from 7c4732fa62e11947633692d9e6849d20df87e7ae (commit)

commit 49fb5c4387ebd048f2173a803a19442105447a52
Author: Mark Trompell <mark at foresightlinux.org>
Date:   Tue Oct 25 08:21:54 2011 +0200

    fix some warnings

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

diff --git a/panel-plugin/indicator.c b/panel-plugin/indicator.c
index fa517bb..594efd4 100644
--- a/panel-plugin/indicator.c
+++ b/panel-plugin/indicator.c
@@ -323,15 +323,15 @@ static void
 entry_added (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer user_data)
 {
   GtkWidget * button = gtk_toggle_button_new();
-  gtk_button_set_relief (GTK_TOGGLE_BUTTON (button), GTK_RELIEF_NONE);
-  gtk_button_set_use_underline(GTK_TOGGLE_BUTTON (button),TRUE);
+  gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
+  gtk_button_set_use_underline(GTK_BUTTON (button),TRUE);
   gtk_widget_set_name(GTK_WIDGET (button), "indicator-button");
 
   if (entry->image != NULL)
-    gtk_button_set_image(GTK_TOGGLE_BUTTON(button), GTK_WIDGET(entry->image));
+    gtk_button_set_image(GTK_BUTTON(button), GTK_WIDGET(entry->image));
 
   if (entry->label != NULL) {
-    gtk_button_set_label(GTK_TOGGLE_BUTTON(button), gtk_label_get_label (entry->label));
+    gtk_button_set_label(GTK_BUTTON(button), gtk_label_get_label (entry->label));
     g_signal_connect(G_OBJECT(entry->label), "notify::label", G_CALLBACK(on_label_changed), button);
   }
 
@@ -339,7 +339,7 @@ entry_added (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer user_d
   {
     g_object_set_data(G_OBJECT(button), "menu", entry->menu);
     gtk_menu_attach_to_widget(entry->menu, button, NULL);
-    g_signal_connect(entry->menu, "deactivate", menu_deactivate,NULL);
+    g_signal_connect(G_OBJECT(entry->menu), "deactivate", G_CALLBACK(menu_deactivate),NULL);
   }
 
   g_signal_connect(button, "button-press-event", G_CALLBACK(on_button_press),


More information about the Xfce4-commits mailing list