SHARE
TWEET

Remove "About" and "Quit" from indicator-sensors menu

quequotion Nov 16th, 2015 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- src/indicator-sensors-0.8/indicator-sensors/is-indicator.c  2014-10-11 19:21:18.000000000 +0900
  2. +++ src/indicator-sensors-0.8/indicator-sensors/is-indicator.c.qq       2015-11-17 12:24:44.989487160 +0900
  3. @@ -154,10 +154,6 @@
  4.  
  5.  static void prefs_action(GtkAction *action,
  6.                           IsIndicator *self);
  7. -static void about_action(GtkAction *action,
  8. -                         IsIndicator *self);
  9. -static void quit_action(GtkAction *action,
  10. -                        IsIndicator *self);
  11.  
  12.  static GtkActionEntry entries[] =
  13.  {
  14. @@ -165,14 +161,6 @@
  15.      "Preferences", "application-preferences", N_("Preferences…"), NULL,
  16.      N_("Preferences"), G_CALLBACK(prefs_action)
  17.    },
  18. -  {
  19. -    "About", "about", N_("About…"), NULL,
  20. -    N_("About"), G_CALLBACK(about_action)
  21. -  },
  22. -  {
  23. -    "Quit", NULL, N_("_Quit"), NULL,
  24. -    N_("Quit"), G_CALLBACK(quit_action)
  25. -  },
  26.  };
  27.  static guint n_entries = G_N_ELEMENTS(entries);
  28.  
  29. @@ -180,8 +168,6 @@
  30.    "<ui>"
  31.    "  <popup name='Indicator'>"
  32.    "    <menuitem action='Preferences' />"
  33. -  "    <menuitem action='About' />"
  34. -  "    <menuitem action='Quit' />"
  35.    "  </popup>"
  36.    "</ui>";
  37.  
  38. @@ -191,18 +177,6 @@
  39.    is_application_show_preferences(self->priv->application);
  40.  }
  41.  
  42. -static void about_action(GtkAction *action,
  43. -                         IsIndicator *self)
  44. -{
  45. -  is_application_show_about(self->priv->application);
  46. -}
  47. -
  48. -static void quit_action(GtkAction *action,
  49. -                        IsIndicator *self)
  50. -{
  51. -  is_application_quit(self->priv->application);
  52. -}
  53. -
  54.  static void
  55.  is_indicator_set_label(IsIndicator *self,
  56.                         const gchar *label)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top