[Xfce4-commits] [xfce/xfce4-power-manager] 01/01: panel-plugin: Properly show 'About' menu item

noreply at xfce.org noreply at xfce.org
Sun Jan 26 23:53:13 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 2d0ce72ee7f8e5f117041450fcc0f274dbbe49ec
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Sun Jan 26 23:52:39 2020 +0100

    panel-plugin: Properly show 'About' menu item
---
 .../power-manager-plugin/power-manager-button.c    | 26 +---------------------
 1 file changed, 1 insertion(+), 25 deletions(-)

diff --git a/panel-plugins/power-manager-plugin/power-manager-button.c b/panel-plugins/power-manager-plugin/power-manager-button.c
index c501a0e..f99ad22 100644
--- a/panel-plugins/power-manager-plugin/power-manager-button.c
+++ b/panel-plugins/power-manager-plugin/power-manager-button.c
@@ -1181,18 +1181,6 @@ power_manager_button_free_data_cb (XfcePanelPlugin *plugin, PowerManagerButton *
 }
 #endif
 
-static void
-help_cb (GtkMenuItem *menuitem, gpointer user_data)
-{
-  xfce_dialog_show_help_with_version (NULL, "xfce4-power-manager", "start", NULL, XFPM_VERSION_SHORT);
-}
-
-static void
-about_cb (GtkMenuItem *menuitem, gpointer user_data)
-{
-  xfpm_about ("xfce4-power-manager");
-}
-
 void
 power_manager_button_show (PowerManagerButton *button)
 {
@@ -1229,20 +1217,8 @@ power_manager_button_show (PowerManagerButton *button)
 
   gtk_container_add (GTK_CONTAINER (button), GTK_WIDGET (hbox));
 
-  /* help dialog */
-  mi = gtk_menu_item_new_with_mnemonic (_("_Help"));
-  gtk_widget_set_sensitive (mi, TRUE);
-  gtk_widget_show (mi);
-  g_signal_connect (mi, "activate", G_CALLBACK (help_cb), button);
-
-  /* about dialog */
-  mi = gtk_menu_item_new_with_mnemonic (_("_About"));
-  gtk_widget_set_sensitive (mi, TRUE);
-  gtk_widget_show (mi);
-  g_signal_connect (mi, "activate", G_CALLBACK (about_cb), button);
-
 #ifdef XFCE_PLUGIN
-  xfce_panel_plugin_menu_insert_item (button->priv->plugin, GTK_MENU_ITEM (mi));
+  xfce_panel_plugin_menu_show_about (button->priv->plugin);
 
   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