diff options
Diffstat (limited to 'sjhbuild/modulesets/patches/xulrunner-no-native-theme.patch')
-rw-r--r-- | sjhbuild/modulesets/patches/xulrunner-no-native-theme.patch | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/sjhbuild/modulesets/patches/xulrunner-no-native-theme.patch b/sjhbuild/modulesets/patches/xulrunner-no-native-theme.patch new file mode 100644 index 0000000..85c2fdf --- /dev/null +++ b/sjhbuild/modulesets/patches/xulrunner-no-native-theme.patch @@ -0,0 +1,99 @@ +--- /tmp/nsNativeThemeGTK.cpp 2008-04-07 12:17:50.000000000 +0200 ++++ widget/src/gtk2/nsNativeThemeGTK.cpp 2008-04-07 12:26:13.000000000 +0200 +@@ -1273,93 +1273,19 @@ + return PR_FALSE; + + switch (aWidgetType) { +- case NS_THEME_BUTTON: +- case NS_THEME_BUTTON_FOCUS: +- case NS_THEME_RADIO: +- case NS_THEME_RADIO_SMALL: +- case NS_THEME_CHECKBOX: +- case NS_THEME_CHECKBOX_SMALL: +- case NS_THEME_TOOLBOX: // N/A +- case NS_THEME_TOOLBAR: +- case NS_THEME_TOOLBAR_BUTTON: +- case NS_THEME_TOOLBAR_DUAL_BUTTON: // so we can override the border with 0 +- case NS_THEME_TOOLBAR_BUTTON_DROPDOWN: +- case NS_THEME_TOOLBAR_SEPARATOR: +- case NS_THEME_TOOLBAR_GRIPPER: +- case NS_THEME_STATUSBAR: +- case NS_THEME_STATUSBAR_PANEL: +- case NS_THEME_STATUSBAR_RESIZER_PANEL: +- case NS_THEME_RESIZER: +- case NS_THEME_LISTBOX: +- // case NS_THEME_LISTBOX_LISTITEM: +- case NS_THEME_TREEVIEW: +- // case NS_THEME_TREEVIEW_TREEITEM: +- case NS_THEME_TREEVIEW_TWISTY: +- // case NS_THEME_TREEVIEW_LINE: +- // case NS_THEME_TREEVIEW_HEADER: +- case NS_THEME_TREEVIEW_HEADER_CELL: +- case NS_THEME_TREEVIEW_HEADER_SORTARROW: +- case NS_THEME_TREEVIEW_TWISTY_OPEN: +- case NS_THEME_PROGRESSBAR: +- case NS_THEME_PROGRESSBAR_CHUNK: +- case NS_THEME_PROGRESSBAR_VERTICAL: +- case NS_THEME_PROGRESSBAR_CHUNK_VERTICAL: +- case NS_THEME_TAB: +- // case NS_THEME_TAB_PANEL: +- case NS_THEME_TAB_PANELS: +- case NS_THEME_TAB_SCROLLARROW_BACK: +- case NS_THEME_TAB_SCROLLARROW_FORWARD: +- case NS_THEME_TOOLTIP: +- case NS_THEME_SPINNER: +- case NS_THEME_SPINNER_UP_BUTTON: +- case NS_THEME_SPINNER_DOWN_BUTTON: +- case NS_THEME_SPINNER_TEXTFIELD: +- // case NS_THEME_SCROLLBAR: (n/a for gtk) +- // case NS_THEME_SCROLLBAR_SMALL: (n/a for gtk) + case NS_THEME_SCROLLBAR_BUTTON_UP: + case NS_THEME_SCROLLBAR_BUTTON_DOWN: + case NS_THEME_SCROLLBAR_BUTTON_LEFT: +- case NS_THEME_SCROLLBAR_BUTTON_RIGHT: + case NS_THEME_SCROLLBAR_TRACK_HORIZONTAL: + case NS_THEME_SCROLLBAR_TRACK_VERTICAL: + case NS_THEME_SCROLLBAR_THUMB_HORIZONTAL: + case NS_THEME_SCROLLBAR_THUMB_VERTICAL: +- // case NS_THEME_SCROLLBAR_GRIPPER_HORIZONTAL: (n/a for gtk) +- // case NS_THEME_SCROLLBAR_GRIPPER_VERTICAL: (n/a for gtk) +- case NS_THEME_TEXTFIELD: +- case NS_THEME_TEXTFIELD_MULTILINE: +- // case NS_THEME_TEXTFIELD_CARET: +- case NS_THEME_DROPDOWN_TEXTFIELD: +- case NS_THEME_SCALE_HORIZONTAL: +- case NS_THEME_SCALE_THUMB_HORIZONTAL: +- case NS_THEME_SCALE_VERTICAL: +- case NS_THEME_SCALE_THUMB_VERTICAL: +- // case NS_THEME_SCALE_THUMB_START: +- // case NS_THEME_SCALE_THUMB_END: +- // case NS_THEME_SCALE_TICK: +- case NS_THEME_CHECKBOX_CONTAINER: +- case NS_THEME_RADIO_CONTAINER: +- case NS_THEME_CHECKBOX_LABEL: +- case NS_THEME_RADIO_LABEL: +- case NS_THEME_MENUBAR: +- case NS_THEME_MENUPOPUP: +- case NS_THEME_MENUITEM: +- case NS_THEME_MENUARROW: +- case NS_THEME_MENUSEPARATOR: +- case NS_THEME_CHECKMENUITEM: +- case NS_THEME_RADIOMENUITEM: +- case NS_THEME_SPLITTER: +- case NS_THEME_WINDOW: +- case NS_THEME_DIALOG: +- case NS_THEME_DROPDOWN: +- case NS_THEME_DROPDOWN_TEXT: + return !IsWidgetStyled(aPresContext, aFrame, aWidgetType); +- +- case NS_THEME_DROPDOWN_BUTTON: ++ //case NS_THEME_DROPDOWN_BUTTON: + // "Native" dropdown buttons cause padding and margin problems, but only + // in HTML so allow them in XUL. +- return (!aFrame || aFrame->GetContent()->IsNodeOfType(nsINode::eXUL)) && +- !IsWidgetStyled(aPresContext, aFrame, aWidgetType); ++ //return (!aFrame || aFrame->GetContent()->IsNodeOfType(nsINode::eXUL)) && ++ // !IsWidgetStyled(aPresContext, aFrame, aWidgetType); + + } + |