From 2c1a8317acb4dab85987fb950714da599fcab3bc Mon Sep 17 00:00:00 2001 From: Martin Stransky Date: Tue, 19 Sep 2017 20:34:31 +0200 Subject: [PATCH] Bug 1364843 - Allow MOZ_GTK_HEADER_BAR* widget creation, r=jhorak Based on patch by Andrew Comminos [:acomminos] MozReview-Commit-ID: 18U3GBrTyVW --HG-- extra : rebase_source : 7a203d5c4d1856d24f08c2ea42ad4519d283ab73 --- widget/gtk/WidgetStyleCache.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/widget/gtk/WidgetStyleCache.cpp b/widget/gtk/WidgetStyleCache.cpp index 303d10dbd975..e34b19cb52fd 100644 --- a/widget/gtk/WidgetStyleCache.cpp +++ b/widget/gtk/WidgetStyleCache.cpp @@ -672,6 +672,13 @@ CreateWidget(WidgetNodeType aWidgetType) return CreateComboBoxEntryButtonWidget(); case MOZ_GTK_COMBOBOX_ENTRY_ARROW: return CreateComboBoxEntryArrowWidget(); + case MOZ_GTK_HEADER_BAR: + case MOZ_GTK_HEADER_BAR_MAXIMIZED: + return CreateHeaderBar(aWidgetType); + case MOZ_GTK_HEADER_BAR_BUTTON_CLOSE: + case MOZ_GTK_HEADER_BAR_BUTTON_MINIMIZE: + case MOZ_GTK_HEADER_BAR_BUTTON_MAXIMIZE: + return CreateHeaderBarButton(aWidgetType); default: /* Not implemented */ return nullptr;