[Xfce4-commits] <xfce4-panel:devel> Add widget names to the actions plugin.

Nick Schermer noreply at xfce.org
Mon Feb 15 15:34:07 CET 2010


Updating branch refs/heads/devel
         to 8843bec6f0e774a40af7d2ab30d136e61daae4b2 (commit)
       from 35e1a8308269e709feaadcb2ad22f2840af83d41 (commit)

commit 8843bec6f0e774a40af7d2ab30d136e61daae4b2
Author: Nick Schermer <nick at xfce.org>
Date:   Mon Feb 15 15:30:18 2010 +0100

    Add widget names to the actions plugin.

 docs/README.gtkrc-2.0     |    6 ++++++
 plugins/actions/actions.c |    2 ++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/docs/README.gtkrc-2.0 b/docs/README.gtkrc-2.0
index 70f18ac..29d9904 100644
--- a/docs/README.gtkrc-2.0
+++ b/docs/README.gtkrc-2.0
@@ -22,6 +22,12 @@ class "XfcePanelWindow" style "xfce-panel-window-style"
 
 
 
+XfceActionsPlugin
+-----------------
+Special widget names in this plugin are actions-first-button and
+actions-second-button.
+
+
 XfceTasklist
 ------------
 style "xfce-tasklist-style"
diff --git a/plugins/actions/actions.c b/plugins/actions/actions.c
index ced4bdc..90a0d07 100644
--- a/plugins/actions/actions.c
+++ b/plugins/actions/actions.c
@@ -173,6 +173,7 @@ actions_plugin_init (ActionsPlugin *plugin)
 
   plugin->first_button = widget = xfce_panel_create_button ();
   gtk_box_pack_start (GTK_BOX (plugin->box), widget, TRUE, TRUE, 0);
+  gtk_widget_set_name (widget, "actions-first-button");
   g_signal_connect (G_OBJECT (widget), "clicked",
       G_CALLBACK (actions_plugin_button_clicked), plugin);
   gtk_widget_set_tooltip_text (widget, _(entry->title));
@@ -185,6 +186,7 @@ actions_plugin_init (ActionsPlugin *plugin)
 
   plugin->second_button = widget = xfce_panel_create_button ();
   gtk_box_pack_start (GTK_BOX (plugin->box), widget, TRUE, TRUE, 0);
+  gtk_widget_set_name (widget, "actions-second-button");
   g_signal_connect (G_OBJECT (widget), "clicked",
       G_CALLBACK (actions_plugin_button_clicked), plugin);
   xfce_panel_plugin_add_action_widget (XFCE_PANEL_PLUGIN (plugin), widget);



More information about the Xfce4-commits mailing list