Issue MoonchildProductions/UXP#1578 - Add global menubar support for GTK

This commit is contained in:
Lootyhoof 2020-06-06 00:37:29 +01:00 • committed by Roy Tam
commit 564f1026d5
32 changed files with 4811 additions and 4 deletions

View file

@ -73,6 +73,10 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
'/dom/system',
'/dom/system/android',
]
elif 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
LOCAL_INCLUDES += [
'/widget/gtk',
]
if CONFIG['MOZ_WEBSPEECH']:
LOCAL_INCLUDES += [

View file

@ -124,6 +124,10 @@
#include "mozilla/StaticPresData.h"
#include "mozilla/dom/WebIDLGlobalNameHash.h"
#ifdef MOZ_WIDGET_GTK
#include "nsNativeMenuAtoms.h"
#endif
using namespace mozilla;
using namespace mozilla::net;
using namespace mozilla::dom;
@ -158,6 +162,9 @@ nsLayoutStatics::Initialize()
nsTextServicesDocument::RegisterAtoms();
nsHTMLTags::RegisterAtoms();
nsRDFAtoms::RegisterAtoms();
#ifdef MOZ_WIDGET_GTK
nsNativeMenuAtoms::RegisterAtoms();
#endif
NS_SealStaticAtomTable();