Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/config/modulesets/patches/xulrunner-no-native-theme.patch
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2008-04-20 00:57:50 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2008-04-20 00:57:50 (GMT)
commit41710698a04c20e566fcb2c152802c1e38cb6316 (patch)
tree2ac4007972081640419fceb63116664fb6642236 /config/modulesets/patches/xulrunner-no-native-theme.patch
parent9f2bbbbebfa7b6f2de89520c6f591549d1ae2667 (diff)
Patches needs to be under modulesets so that jhbuild can find them.
Diffstat (limited to 'config/modulesets/patches/xulrunner-no-native-theme.patch')
-rw-r--r--config/modulesets/patches/xulrunner-no-native-theme.patch99
1 files changed, 99 insertions, 0 deletions
diff --git a/config/modulesets/patches/xulrunner-no-native-theme.patch b/config/modulesets/patches/xulrunner-no-native-theme.patch
new file mode 100644
index 0000000..f15b540
--- /dev/null
+++ b/config/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,18 @@
+ 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);
+
+ }
+