Commit graph

45 commits

Author SHA1 Message Date
Moonchild
f1759b33ff Issue #1656 - Remove more vim control lines.
Vim control lines were re-introduced or not entirely cleaned up.
This nukes them again.
Removing from accessible, [root], tools, uriloader, widget, xpcom and
xpfe.
Resolves #1656
2023-05-05 23:00:05 +08:00
Moonchild
4381425b26 [gtk widget] Use text/uri-list for file drag&drop. 2023-01-19 09:41:00 +08:00
FranklinDM
704a1bcfab No issue - Replace use of deprecated GetPreventDefault in GTK menu bar 2022-12-30 09:20:59 +08:00
FranklinDM
6d6d149b6f Issue #2036 - Prevent GTK color picker from being frozen when launched from a modal XUL window
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1496836
2022-12-02 23:55:12 +08:00
Moonchild
e54e8f61bb Issue #1970 - Part 2: Remove the extra padding on buttons
Extra padding was created for a prospective -moz-focus-inner ring.
We now just size that ring the same as the content frame, inflated by its CSS
padding.
2022-08-04 14:24:10 +08:00
Moonchild
2d99d18c21 Issue #1705 - Part 8: Implement scrollbar-width:thin on GTK. 2021-01-14 22:20:01 +08:00
Moonchild
0cd673d720 Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00
Moonchild
d7a4abc3d4 Issue #1656 - Part 4: Tackle *.idl, *.css, *.ipdlh, *.webidl, *.cc 2020-09-25 22:04:18 +08:00
Moonchild
30df895eb2 Issue #1656 - Part 3: Nuke more vim config lines in the tree.
Another S&R run with some smarter matching.
2020-09-25 22:04:17 +08:00
Moonchild
8c395520d9 Issue #1656 - Part 1: Nuke most vim config lines in the tree.
Since these are just interpreted comments, there's 0 impact on actual code.
This removes all lines that match /* vim: set(.*)tw=80: */ with S&R -- there are
a few others scattered around which will be removed manually in a second part.
2020-09-25 22:04:12 +08:00
Lootyhoof
2b8d258df0 Follow up to Issue #1578 - Remove unnecessary MOZ_ASSERT 2020-06-20 06:44:31 +08:00
Lootyhoof
564f1026d5 Issue MoonchildProductions/UXP#1578 - Add global menubar support for GTK 2020-06-10 21:00:30 +08:00
wolfbeast
01ba6b6d82 Update GTK clipboard handling
- Store the clipboard even if it was set in a GTK dialog.
- Fix a GtkTargetList leak.
- Notify GTK that the data is no longer available for
clipboard_get_cb(), so that GTK will no longer advertise nor attempt to
store the data.
2020-01-11 06:47:36 +08:00
wolfbeast
72e5396dfa Initialize all fields of GdkEvents in nsClipboard.cpp 2019-12-06 22:46:50 +08:00
Ascrod
53bfc43dbe Issue #999 - Disable native file picker by default. 2019-08-17 13:33:40 +08:00
Ascrod
4d854945cd Issue #999 - Use xdg-desktop-portal for file selection dialogs on Linux. 2019-08-17 13:33:37 +08:00
SpockMan02
2d708bf86c Undo Mozilla Bug 1302937; Reinstate -moz-mac-lion-theme media query 2019-02-16 00:06:39 +08:00
Gaming4JC
7e4ac9f3a2 backport mozbug #546387: fix assert failure in gtk which prints to the console. 2019-02-16 00:01:17 +08:00
trav90
c5af75551d [GTK3] Set alpha component appropriately in operator over for -moz-field 2019-02-15 23:43:45 +08:00
trav90
3e7ff78276 Fix GTK3 build bustage 2019-02-15 23:43:43 +08:00
trav90
88757310cd [GTK3] Ignore double-click on WM without _NET_WM_MOVERESIZE support
This fixes a crash with GTK3 builds used with a window manager that does not support _NET_WM_MOVERESIZE.
2019-02-15 23:43:42 +08:00
trav90
618138082f [GTK3] Get styles for menu label, button text and combobox text colors from WidgetCache 2019-02-15 23:43:40 +08:00
trav90
a144db2754 [GTK3] Don't invalidate style content for missing widgets 2019-02-15 23:43:39 +08:00
trav90
752c6892c2 [GTK3] Invalidate widget style contexts after their ancestors are set
Although this is only known to affect buttons with builtin child widgets, it is difficult to audit all GTK widgets for similar situations, and so the same defense is applied to all widgets.
2019-02-15 23:43:37 +08:00
trav90
0c21383d69 [GTK3] Force a style resolution on context creation to set GTK 3.4 theming_engine
This works around a GTK bug that led to the default engine being used instead for the first draw.
2019-02-15 23:43:35 +08:00
trav90
240fc2a6b6 [GTK3] For Gtk > 3.20 determine scale trough size from trough CSS node and also add border/padding/margin 2019-02-15 23:43:34 +08:00
trav90
cfed5f8df1 [GTK3] Consider also margin when determine range widget slider size 2019-02-15 23:43:32 +08:00
trav90
680970a479 [GTK3] With GTK versions < 3.8 draw menuitem background and frame only when in hover and not a separator 2019-02-15 23:43:31 +08:00
trav90
07991c52f4 [GTK3] Implement pre-3.20 MOZ_GTK_PROGRESS_CHUNK in WidgetStyleCache 2019-02-15 23:43:30 +08:00
trav90
459d7f575f [GTK3] Adjust textarea style contexts for GTK 3.20 theming ABI changes 2019-02-15 23:43:28 +08:00
trav90
a9302f7a0e [GTK3] Consider textview root node background in addition to text node for -moz-appearance:textfield-multiline
This is necessary for GTK versions > 3.18 because windows no longer clear their backgrounds since https://git.gnome.org/browse/gtk+/commit/?id=580ea227a6bb19ad6c6d4766b3a36dbad24583f3 and Ambiance for 3.20 has a transparent background for the "text" window.
2019-02-15 23:43:27 +08:00
trav90
5ba7568c8d [GTK3] Consider textview root node background in addition to text node for -moz-field
This is necessary for GTK versions > 3.18 because windows no longer clear their backgrounds since https://git.gnome.org/browse/gtk+/commit/?id=580ea227a6bb19ad6c6d4766b3a36dbad24583f3 and Ambiance for 3.20 has a transparent background for the "text" window.
2019-02-15 23:43:25 +08:00
trav90
3951327f27 [GTK3] Introduce MOZ_GTK_TEXT_VIEW_TEXT and move MOZ_GTK_RESIZER to WidgetStyleCache
The style context for MOZ_GTK_TEXT_VIEW is now created by copying from the widget instead of caching a widget and using its context.
No rendering changes are expected, unless themes are animating GtkTextView backgrounds.
2019-02-15 23:43:24 +08:00
trav90
f0e2977c10 [GTK3] Use WidgetCache to get colors at nsLookAndFeelfor menuitems, text and tree view 2019-02-15 23:43:22 +08:00
trav90
f84529230b [GTK3] Use WidgetCache to get colors at nsLookAndFeel for GtkButton, GtkWindow, GtkScrollBar 2019-02-15 23:43:21 +08:00
trav90
9461197f53 [GTK3] Use WidgetCache to get colors at nsLookAndFeel 2019-02-15 23:43:19 +08:00
trav90
6a029bbbad [GTK3] Adjust menuitem padding and check/radio indicator position for changes in GTK 3.20 2019-02-15 23:43:17 +08:00
trav90
aa3618bdd7 [GTK3] Rename subtract_margin and rectangle_inset to Inset* and swap InsetByMargin parameters for consistency. 2019-02-15 23:43:15 +08:00
trav90
cfd6edee95 [GTK] Rename radio/check menuitem and indicator as used with ClaimStyleContext.
The same name is retained for moz_gtk_widget_paint(), which is now more consistent.
2019-02-15 23:43:14 +08:00
trav90
7420a48c04 [GTK3] Use menuitem padding between menuitem and check indicator. 2019-02-15 23:43:12 +08:00
trav90
51ddd61925 [GTK3] Draw only background and frame of separator menuitems in GTK versions > 3.20
In GTK 3.20, gtk_menu_item_draw() just draws the root widget gadget, depending on the theme to style menu items with CSS name "separator" appropriately.
2019-02-15 23:43:11 +08:00
trav90
29821c238a [GTK3] Draw separator menuitem background and frame behind separator in menu 2019-02-15 23:43:09 +08:00
trav90
381de05df3 [GTK3] Draw menuitem background even when not in hover 2019-02-15 23:43:08 +08:00
wolfbeast
d07bf4bba2 Un-fold browsercomps.* from libxul
This resolves #16.
2019-02-15 23:31:09 +08:00
Roy Tam
dcd9973243 import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00