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

Mark Trompell noreply at xfce.org
Fri Jul 15 12:34:01 CEST 2011


Updating branch refs/heads/master
         to fb138cde9c5bce2ed9e8d5ba291c71196697a8e4 (commit)
       from 61d0a59e3bf72637cc77cb1d983e7b1efe7f5bfc (commit)

commit fb138cde9c5bce2ed9e8d5ba291c71196697a8e4
Author: Mark Trompell <mark at foresightlinux.org>
Date:   Fri Jul 15 12:33:29 2011 +0200

    fix indicator-appmenu

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

diff --git a/panel-plugin/indicator.c b/panel-plugin/indicator.c
index 9c6de50..1741a9c 100644
--- a/panel-plugin/indicator.c
+++ b/panel-plugin/indicator.c
@@ -226,6 +226,7 @@ entry_added (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer user_d
 {
   GtkWidget * button = gtk_button_new();
   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)
@@ -241,6 +242,8 @@ entry_added (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer user_d
                    user_data);
   gtk_box_pack_start(GTK_BOX(((IndicatorPlugin *)user_data)->buttonbox), button, TRUE, TRUE, 0);
   gtk_widget_show(button);
+  g_object_set_data(G_OBJECT(button), "indicator-custom-object-data", io);
+  g_object_set_data(G_OBJECT(button), "indicator-custom-entry-data", entry);
 }
 
 
@@ -251,7 +254,7 @@ entry_removed_cb (GtkWidget * widget, gpointer userdata)
 
   if (data != userdata)
     return;
-
+    
   gtk_widget_destroy(widget);
 }
 



More information about the Xfce4-commits mailing list