[gnome-applets] modemlights: remove help menu item



commit 8ed2a06cba1e7cae6988bc18f697952836641efe
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Jul 10 11:45:08 2014 +0300

    modemlights: remove help menu item
    
    There is no help to install so remove useless help menu entry.

 modemlights/Makefile.am           |    2 --
 modemlights/modem-applet-menu.xml |    2 --
 modemlights/modem-applet.c        |   15 ---------------
 3 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/modemlights/Makefile.am b/modemlights/Makefile.am
index 71680ad..f16a431 100644
--- a/modemlights/Makefile.am
+++ b/modemlights/Makefile.am
@@ -1,5 +1,3 @@
-#SUBDIRS = help
-
 AM_CPPFLAGS = -I. -I$(srcdir)                          \
        -DMODEM_MENU_UI_DIR=\""$(uidir)"\"              \
        $(GNOME_APPLETS_CFLAGS)                         \
diff --git a/modemlights/modem-applet-menu.xml b/modemlights/modem-applet-menu.xml
index 7e1d0e0..5a70c09 100644
--- a/modemlights/modem-applet-menu.xml
+++ b/modemlights/modem-applet-menu.xml
@@ -2,6 +2,4 @@
 <menuitem name="Deactivate" action="Deactivate" />
 <separator/>
 <menuitem name="Properties" action="Properties" />
-<menuitem name="Help"       action="Help" />
 <menuitem name="About"      action="About" />
-
diff --git a/modemlights/modem-applet.c b/modemlights/modem-applet.c
index 4ce7479..b072f32 100644
--- a/modemlights/modem-applet.c
+++ b/modemlights/modem-applet.c
@@ -124,8 +124,6 @@ static void on_modem_applet_deactivate    (GtkAction   *action,
                                           ModemApplet *applet);
 static void on_modem_applet_properties_clicked (GtkAction   *action,
                                                ModemApplet *applet);
-static void on_modem_applet_help_clicked  (GtkAction   *action,
-                                          ModemApplet *applet);
 
 static void launch_backend                (ModemApplet      *applet,
                                           gboolean          root_auth);
@@ -143,9 +141,6 @@ static const GtkActionEntry menu_actions[] = {
   { "Properties", GTK_STOCK_PROPERTIES, N_("_Properties"),
     NULL, NULL,
     G_CALLBACK (on_modem_applet_properties_clicked) },
-  { "Help", GTK_STOCK_HELP, N_("_Help"),
-    NULL, NULL,
-    G_CALLBACK (on_modem_applet_help_clicked) },
   { "About", GTK_STOCK_ABOUT, N_("_About"),
     NULL, NULL,
     G_CALLBACK (on_modem_applet_about_clicked) }
@@ -1000,16 +995,6 @@ on_modem_applet_about_clicked (GtkAction   *action,
                         NULL);
 }
 
-static void
-on_modem_applet_help_clicked (GtkAction   *action,
-                             ModemApplet *applet)
-{
-  gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (applet)),
-               "help:modemlights",
-               gtk_get_current_event_time (),
-               NULL);
-}
-
 static gboolean
 modem_applet_fill (ModemApplet *applet)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]