~mozillateam/thunderbird/thunderbird-beta.vivid

« back to all changes in this revision

Viewing changes to debian/globalmenu/src/uGlobalMenuItem.h

  • Committer: Chris Coulson
  • Date: 2012-07-13 21:55:50 UTC
  • Revision ID: chris.coulson@canonical.com-20120713215550-yiifogw5jq3q0cgi
* New upstream release from the beta channel (THUNDERBIRD_14_0b5_BUILD1)
* New upstream release from the beta channel (THUNDERBIRD_14_0b4_BUILD1)
* Update globalmenu-extension to 3.3 prerelease r388
  - Fix LP: #775305 - Use style to determine menuitem visibility
  - Fix LP: #1017247 - Manually register our UA stylesheet rather than
    relying on this happening via chrome registration, to work around a
    bug in various bootstrapped third party addons, which initialize and
    use the stylesheet service before extension chrome is registered for
    non-restartless addons such as ours
  - Fix a crash in uGlobalMenu::RecycleList::~RecycleList()
* Apport hook improvements:
  - Sort preferences alphabetically in the apport data
  - Treat preferences set in default addons as default prefs so that
    they don't show up in apport data, unless the preference files have
    been modified
  - Support random pref files dropped in to the Firefox install folder, and
    preferences from application bundles
  - Fix ordering issues when loading preferences
* Fix LP: #1013171 - Fully support Python 3 in the apport hook
  - update debian/apport/source_firefox.py.in
* Update the Apport blacklist file after dropping thunderbird-bin
  - update debian/apport/blacklist.in
* Update eds extension to 0.3.11 for YAEDSABI (yet another EDS ABI)
* Update eds dependencies for YAEDSABI
  - update debian/rules
* Add partial support for Python 3 in the apport hook (LP: #1013171)
  - update debian/apport/source_firefox.py.in
* Cherry pick patch from aurora to use YARR interpreter on ppc
  - update debian/patches/fix-build-failure-without-yarr-jit.patch
  - update debian/patches/series
* Fix ppc build due to new dtoa library
  - add debian/patches/fix-dtoa-build-on-ppc.patch
  - update debian/patches/series
* debian/apport/source_thunderbird.py.in:
  - Update apport hook for python3
* Add missing file
* New upstream release from the beta channel (THUNDERBIRD_14_0b3_BUILD1)
* Update globalmenu-extension to 3.3 prerelease r369
  - Fix LP: #1010580 - update the window event timestamp when handling
    menu events
  - Fix LP: #775080 - Thunderbird with Firetray/MinimizeToTray -
    Global menu disappears
  - Fix LP: #813775 - Hitting an assertion in dbusmenu
* Update eds extension to 0.3.10 for new evolution-data-server ABI
  (thanks to Tim Gardner)
* Update eds dependencies for quantal (LP: #1015723)
* New upstream release from the beta channel (THUNDERBIRD_14_0b2_BUILD1)
* Switch back to GCC4.7 now that LP: #1003733 is fixed
  - update debian/config/branch.mk
  - update debian/control{,.in}
* Don't set LD_LIBRARY_PATH in our shell wrapper, and install
  dependentlibs.list instead now
  - update debian/thunderbird.sh.in
  - update debian/thunderbird.install.in
* Drop StartupWMClass from the desktop file now that WM_CLASS is the same
  as the binary name (also fixes LP: #1012158)
  - update debian/thunderbird.desktop.in
  - update debian/rules
* New upstream release from the beta channel (THUNDERBIRD_14_0b1_BUILD2)
* Update globalmenu-extension to 3.2.4 prerelease r338
* Drop patches fixed upstream
  - remove debian/patches/revert-bmo621446-investigation.patch
  - update debian/patches/series
* Update desktop file translations
  - update debian/thunderbird.desktop.in
* Ensure that additional actions in the desktop file match the fd.o spec
  in precise
  - update debian/thunderbird.desktop.in
  - update debian/rules
* Add application/x-xpinstall to the MimeType field of the desktop file
  - update debian/thunderbird.desktop.in
* Drop almost all mimetypes from the desktop file. Thunderbird won't display
  any of them if you invoke it with files of these types. It will just 
  open a Compose window and add the file as an attachment
  - update debian/thunderbird.desktop.in
* Drop the ability to select between tree/system libraries using a single
  option in debian/rules. It adds additional complexity and was never used
  - update debian/config/mozconfig.in
  - update debian/control.in
  - update debian/thunderbird-dev.links.in
  - update debian/rules
* Add Catalan keywords
  - update debian/thunderbird.desktop.in

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
#include <libdbusmenu-glib/server.h>
47
47
 
48
48
#include "uGlobalMenuObject.h"
49
 
#include "uMenuChangeObserver.h"
 
49
 
 
50
// This menuitem is a checkbox or radioitem which is active
 
51
#define UNITY_MENUITEM_TOGGLE_IS_ACTIVE   (1 << 10)
 
52
 
 
53
// This menuitem is a checkbox
 
54
#define UNITY_MENUITEM_IS_CHECKBOX        (1 << 11)
 
55
 
 
56
// This menuitem is a radio item
 
57
#define UNITY_MENUITEM_IS_RADIO           (1 << 12)
 
58
 
 
59
// Used by the reentrancy guard for SyncTypeAndStateFromContent()
 
60
#define UNITY_MENUITEM_SYNC_TYPE_GUARD    (1 << 13)
50
61
 
51
62
class nsIContent;
52
63
class uGlobalMenuDocListener;
58
69
  eRadio
59
70
};
60
71
 
61
 
class uGlobalMenuItem: public uGlobalMenuObject,
62
 
                       public uMenuChangeObserver
 
72
class uGlobalMenuItem: public uGlobalMenuObject
63
73
{
64
74
public:
65
 
  NS_DECL_UMENUCHANGEOBSERVER
66
 
 
67
75
  static uGlobalMenuObject* Create(uGlobalMenuObject *aParent,
68
76
                                   uGlobalMenuDocListener *aListener,
69
77
                                   nsIContent *aContent,
70
78
                                   uGlobalMenuBar *aMenuBar);
71
79
 
72
 
  void AboutToShowNotify();
 
80
protected:
 
81
  void ObserveAttributeChanged(nsIDocument *aDocument,
 
82
                               nsIContent *aContent,
 
83
                               nsIAtom *aAttribute);
 
84
  void Refresh();
73
85
 
74
86
private:
75
87
  uGlobalMenuItem();
83
95
  PRUint32 GetKeyCode(nsAString &aKeyName);
84
96
  PRUint32 MozKeyCodeToGdkKeyCode(PRUint32 aMozKeyCode);
85
97
  void SyncAccelFromContent();
86
 
  void SyncProperties();
87
98
  void SyncTypeAndStateFromContent();
88
99
  void InitializeDbusMenuItem();
89
100
  static void ItemActivatedCallback(DbusmenuMenuitem *menuItem,
90
101
                                    PRUint32 timeStamp,
91
102
                                    void *data);
92
 
  void Activate();
 
103
  void Activate(PRUint32 timeStamp);
93
104
  void UncheckSiblings();
94
105
  void SetMenuItemType(uMenuItemType aType)
95
106
  {