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

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


Updating branch refs/heads/devel
         to 0fa6fb4d555bcdeb004098e7ebd10965b523d097 (commit)
       from 8843bec6f0e774a40af7d2ab30d136e61daae4b2 (commit)

commit 0fa6fb4d555bcdeb004098e7ebd10965b523d097
Author: Nick Schermer <nick at xfce.org>
Date:   Mon Feb 15 15:31:47 2010 +0100

    Add widget name to the showdesktop plugin.

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

diff --git a/docs/README.gtkrc-2.0 b/docs/README.gtkrc-2.0
index 29d9904..04af684 100644
--- a/docs/README.gtkrc-2.0
+++ b/docs/README.gtkrc-2.0
@@ -28,6 +28,12 @@ Special widget names in this plugin are actions-first-button and
 actions-second-button.
 
 
+
+XfceShowDesktopPlugin
+---------------------
+Special widget name in this plugin is showdesktop-button.
+
+
 XfceTasklist
 ------------
 style "xfce-tasklist-style"
diff --git a/plugins/showdesktop/showdesktop.c b/plugins/showdesktop/showdesktop.c
index 683d834..c81bef6 100644
--- a/plugins/showdesktop/showdesktop.c
+++ b/plugins/showdesktop/showdesktop.c
@@ -90,6 +90,7 @@ show_desktop_plugin_init (ShowDesktopPlugin *plugin)
   button = plugin->button = xfce_panel_create_toggle_button ();
   gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
   gtk_container_add (GTK_CONTAINER (plugin), button);
+  gtk_widget_set_name (button, "showdesktop-button");
   g_signal_connect (G_OBJECT (button), "toggled",
       G_CALLBACK (show_desktop_plugin_toggled), plugin);
   xfce_panel_plugin_add_action_widget (XFCE_PANEL_PLUGIN (plugin), button);



More information about the Xfce4-commits mailing list