[Xfce4-commits] [xfce/xfce4-power-manager] 01/01: panel-plugin: Properly hook up about signal

noreply at xfce.org noreply at xfce.org
Mon Jan 27 00:14:47 CET 2020


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-power-manager.

commit 299381a5142f20934305741050f003735da0d740
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Mon Jan 27 00:14:29 2020 +0100

    panel-plugin: Properly hook up about signal
---
 panel-plugins/power-manager-plugin/power-manager-button.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/panel-plugins/power-manager-plugin/power-manager-button.c b/panel-plugins/power-manager-plugin/power-manager-button.c
index f99ad22..a4531fd 100644
--- a/panel-plugins/power-manager-plugin/power-manager-button.c
+++ b/panel-plugins/power-manager-plugin/power-manager-button.c
@@ -1179,6 +1179,12 @@ power_manager_button_free_data_cb (XfcePanelPlugin *plugin, PowerManagerButton *
 {
   gtk_widget_destroy (GTK_WIDGET (button));
 }
+
+static void
+about_cb (GtkMenuItem *menuitem, gpointer user_data)
+{
+  xfpm_about ("xfce4-power-manager");
+}
 #endif
 
 void
@@ -1219,6 +1225,7 @@ power_manager_button_show (PowerManagerButton *button)
 
 #ifdef XFCE_PLUGIN
   xfce_panel_plugin_menu_show_about (button->priv->plugin);
+  g_signal_connect (button->priv->plugin, "about", G_CALLBACK (about_cb), NULL);
 
   g_signal_connect (button->priv->plugin, "size-changed",
                     G_CALLBACK (power_manager_button_size_changed_cb), button);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list