[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:58:07 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       x   f   c   e   -   4   .   1   4   
   in repository xfce/xfce4-power-manager.

commit 0a40699d6ef0fe153a879ab3df69c52de7292547
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Sun Jan 26 23:57:45 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 40b4dca..958c99c 100644
--- a/panel-plugins/power-manager-plugin/power-manager-button.c
+++ b/panel-plugins/power-manager-plugin/power-manager-button.c
@@ -1115,18 +1115,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)
 {
@@ -1148,20 +1136,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