~ubuntu-branches/ubuntu/oneiric/thunderbird/oneiric-updates

« back to all changes in this revision

Viewing changes to debian/globalmenu/components/src/uGlobalMenuService.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2011-08-09 19:28:44 UTC
  • mfrom: (1.6.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20110809192844-tvmhdsvt1hirk9s8
Tags: 6.0~b3+build1+nobinonly-0ubuntu1
* New upstream release from the beta channel (THUNDERBIRD_6_0b3_BUILD1)

* Update globalmenu-extension to 1.9.1
  - Drop Firefox 4 and 5 compatibility
  - Drop the uIGlobalMenuLoader interface, as it never served any purpose
  - Rework how we synchronize attributes to menuitems from their
    corresponding command nodes
  - Don't synchronize attributes from command nodes associated with menus
  - Rework how we handle document insertion/removals. Rather than keeping
    our dbusmenu structure in sync at all times, and routing the events
    to the correct node in the tree, we just mark the menu as invalid and
    rebuild it from scratch next time it opens. This should reduce problems
    like LP: #821391
  - Honour the collapsed attribute. This solves a problem with multiple
    seprators appearing adjacent to each other in the greasemonkey menu
  - Store all booleans as PRPackedBool rather than PRBool
  - Add error checking around uGlobalMenuDocListener
  - Make uGlobalMenuDummy more robust, and use it as a fallback if the
    real menuitem fails to initialize. This should help reduce problems
    like LP: #831391
  - If a menu fails to build correctly, mark it invalid and stop processing
    document events on it (which should avoid the crash in LP: #831391)
  - Invalidate a menu if we fail to insert/remove a node whilst processing
    a document event (which should help avoid the crash in LP: #831391)
  - Make uGlobalMenu::CanOpen() respect the collapsed attribute
  - Allow more than one menu node to register as a listener for any DOM
    node. In the case of command nodes, these may be shared across multiple
    menu nodes, with each one interested in receiving events. Previously, we
    just erased the first listener if a second menu node tried to register
    (discovered after adding error checking around uGlobalMenuDocListener)
* Update messagingmenu-extension to r66
  - add an inbox-only mode
* Refresh shipped locales for new release
* Ship the eds contacts integration extension, based on r80
  - add debian/eds/*
  - update debian/rules
  - update debian/thunderbird.desktop.in
  - update debian/thunderbird.dirs.in
  - update debian/thunderbird.install.in
  - update debian/control
* Move the Unity depends to thunderbird-gnome-support, and make sure we only
  add them for oneiric builds
  - update debian/control
  - update debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
217
217
void
218
218
uGlobalMenuService::SetOnline(PRBool aOnline)
219
219
{
220
 
  if (mOnline != aOnline) {
221
 
    mOnline = aOnline;
 
220
  if (mOnline != !!aOnline) {
 
221
    mOnline = !!aOnline;
222
222
    nsCOMPtr<nsIObserverService> os =
223
223
      do_GetService("@mozilla.org/observer-service;1");
224
224
    if (os) {
394
394
uGlobalMenuService::GetOnline(PRBool *online)
395
395
{
396
396
  NS_ENSURE_ARG_POINTER(online);
397
 
  *online = mOnline;
 
397
  *online = !!mOnline;
398
398
  return NS_OK;
399
399
}
400
400