Граф коммитов

158 Коммитов

Автор SHA1 Сообщение Дата
stransky 7d83b25b74 Bug 1772721 [Linux] Add dummy call to mozgtk to prevent its removal r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D148496
2022-06-21 06:52:02 +00:00
Bogdan Szekely 0ba51fcd7a Backed out changeset 71f770d93407 (bug 1772721) for causing build bustage on /builds/worker/checkouts/gecko/widget/gtk/nsWindow.cpp CLOSED TREE 2022-06-10 13:01:29 +03:00
stransky 7e5bc0070b Bug 1772721 [Linux] Add dummy call to mozgtk to prevent its removal r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D148496
2022-06-10 08:44:16 +00:00
ganguin 401a7db5f7 Bug 1661450 - 7/8 Special care for mozgtk.c r=stransky
Opt out of X11 code makes mozgtk.c empty. But following the comment in the
file, it requires at least a symbol to force libxul to depend on it.

Therefore I added a common gtk function. However, I don't know if adding that
chosen function can have unwanted side-effects.

Depends on D139532

Differential Revision: https://phabricator.services.mozilla.com/D139533
2022-04-20 09:32:09 +00:00
criss 8d62d22b30 Backed out 10 changesets (bug 1661450) for causing build bustages on nsWindow.cpp. CLOSED TREE
Backed out changeset 2c41d82de0c5 (bug 1661450)
Backed out changeset 5f58fcd7ac0b (bug 1661450)
Backed out changeset 62e56a6dcd22 (bug 1661450)
Backed out changeset 4b422ffa729f (bug 1661450)
Backed out changeset 6ca4705772da (bug 1661450)
Backed out changeset 031a6313459f (bug 1661450)
Backed out changeset 06ddf05e97d6 (bug 1661450)
Backed out changeset 4388b1b9aafd (bug 1661450)
Backed out changeset 600f9fd09fa6 (bug 1661450)
Backed out changeset cc5e8efe3ebf (bug 1661450)
2022-04-19 12:25:14 +03:00
ganguin 140f0687c1 Bug 1661450 - 7/8 Special care for mozgtk.c r=stransky
Opt out of X11 code makes mozgtk.c empty. But following the comment in the
file, it requires at least a symbol to force libxul to depend on it.

Therefore I added a common gtk function. However, I don't know if adding that
chosen function can have unwanted side-effects.

Depends on D139532

Differential Revision: https://phabricator.services.mozilla.com/D139533
2022-04-19 08:35:28 +00:00
Mike Hommey 221139493a Bug 1721962 - Switch to pkg-config for X11 libraries. r=firefox-build-system-reviewers,jgilbert,andi
Differential Revision: https://phabricator.services.mozilla.com/D121309
2021-07-30 11:39:39 +00:00
Mike Hommey e9954811d5 Bug 1721962 - Don't assume XCFLAGS are always in CPPFLAGS on *bsd. r=firefox-build-system-reviewers,jgilbert,andi
Differential Revision: https://phabricator.services.mozilla.com/D121307
2021-07-30 11:39:38 +00:00
Mike Hommey 8bf0782758 Bug 1707834 - Avoid libmozgtk not being linked to libxul. r=firefox-build-system-reviewers,mhentges
When the linker defaults to --as-needed, libmozgtk ends up not linked
to libxul because libxul doesn't use anything from it.
We solve the problem by adding a symbol to mozgtk and have libxul use
it.

In bug 1377445, we moved XShmQueryExtension to mozglue. While libxul
currently doesn't use the symbol (it's a workaround for system
libraries), we can move the function back to mozgtk and add a dummy
call.

Differential Revision: https://phabricator.services.mozilla.com/D113487
2021-04-27 21:44:22 +00:00
Mike Hommey 51ef1125c8 Bug 1706452 - Reintroduce a mozgtk library after bug 1377445. r=firefox-build-system-reviewers,rmader,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D112883
2021-04-22 13:56:57 +00:00
Mike Hommey 79e8df83dd Bug 1377445 - Remove build dependencies on gtk+2. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D111997
2021-04-20 01:57:03 +00:00
Csoregi Natalia bd01562887 Backed out changeset 3ec9f9951ffe (bug 1377445) for bustage due to missing file. CLOSED TREE 2021-04-08 11:04:47 +03:00
Bryan Quigley a1b5fde57c Bug 1377445 - Drop gtk2 depends r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D111121
2021-04-08 07:38:40 +00:00
Jan Alexander Steffens (heftig) 4920407bb3 Bug 1696845 - Use dlsym for gdk_*_display_get_type. r=stransky
Using `dlsym` for `gdk_wayland_display_get_type` is a cleaner solution
to bug 1696319, allowing running with a GTK that lacks the Wayland
backend.

Also adds a symmetric implementation for `gdk_x11_display_get_type`,
which should help running without X11.

Differential Revision: https://phabricator.services.mozilla.com/D107406
2021-03-11 14:32:53 +00:00
Narcis Beleuzu 198358fc15 Backed out changeset a4f4f640eaa7 (bug 1696845) for bustages on pangofc-fontmap.h 2021-03-10 04:49:51 +02:00
Jan Alexander Steffens (heftig) 1261a74d17 Bug 1696845 - Use dlsym for gdk_*_display_get_type. r=stransky
Using `dlsym` for `gdk_wayland_display_get_type` is a cleaner solution
to bug 1696319, allowing running with a GTK that lacks the Wayland
backend.

Also adds a symmetric implementation for `gdk_x11_display_get_type`,
which should help running without X11.

Differential Revision: https://phabricator.services.mozilla.com/D107406
2021-03-09 22:55:47 +00:00
mazin a0a63035c4 Bug 1612738 - Set minimum widget size for mContainer. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D105514
2021-03-09 15:46:08 +00:00
Cosmin Sabou b0e01e4fe5 Backed out changeset 32e20e00382d (bug 1612738) for causing bc failures on browser_closePipPause.js. CLOSED TREE 2021-03-05 19:33:36 +02:00
mazin 14ba15ff64 Bug 1612738 - Set minimum widget size for mContainer. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D105514
2021-03-05 16:08:34 +00:00
Robert Mader daafa866da Bug 1668805: Enable opaque region if new GDK API is availabe, r=stransky
From GTK 3.24.25 on we have a new API that allows us to savely apply
opaque regions to our own surfaces without risking to freeze GDK.

Differential Revision: https://phabricator.services.mozilla.com/D102835
2021-02-16 09:04:47 +00:00
Jed Davis cb3356b35e Bug 1470983 - Prelude: Remove use of gtk_widget_get_settings in LookAndFeel. r=heycam
The GTK nsLookAndFeel implementation uses `gtk_widget_get_settings`
on temporary widgets that aren't attached to anything, which the
documentation says not to do.  Empirically, this seems to return the
same settings object as `gtk_settings_get_default`.

Explicitly using `gtk_settings_get_default` is useful for remote
look-and-feel, so that the parent process can register for property
changes on that object to know when to update the child processes.

Differential Revision: https://phabricator.services.mozilla.com/D94535
2020-12-13 01:34:35 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Olivier Tilloy f300a8180b Bug 1661715 - Move GTK function stubs to the correct section. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D88588
2020-08-30 23:15:30 +00:00
Jonathan Kew 4c912b37eb Bug 1654484 - Don't regenerate print preview on Linux if Page Setup dialog is opened but cancelled or closed without changes. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D84679
2020-08-01 10:23:27 +00:00
Robert Mader 1e96614739 Bug 1654687 - Remove some more GTK3-version related checks, r=stransky
They are all present since 3.8. Also bumb a version check.

Differential Revision: https://phabricator.services.mozilla.com/D84899
2020-07-26 13:20:13 +00:00
Robert Mader 963b9ba20a Bug 1654687 - Use gtk_window_set_titlebar directly, r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D84623
2020-07-23 08:53:40 +00:00
Robert Mader 0d74f2d95f Bug 1617002 - Remove checks for unsupported GTK3 versions. r=stransky
Cleans up the code a bit to make actually used fallback code easier to spot
and update the required GTK version so deprecation warnings are more accurate.

Also make `gdk_window_set_opaque_region` always available - we can now assume
it to be present in all supported versions.

Differential Revision: https://phabricator.services.mozilla.com/D82804
2020-07-20 15:43:30 +00:00
Mike Conley ac1402cb2a Bug 1641546 - Make sure alwaysontop windows don't pull focus when first opening on Linux GTK. r=stransky
Depends on D77528

Differential Revision: https://phabricator.services.mozilla.com/D77695
2020-06-08 18:36:17 +00:00
Coroiu Cristina 093544ac23 Backed out 6 changesets (bug 1641546) for permafailing browser-chrome at browser_devices_get_user_media_unprompted_access_tear_off_tab.js
Backed out changeset 2652e1c084a7 (bug 1641546)
Backed out changeset 72a62a455c47 (bug 1641546)
Backed out changeset 4746c37be3e6 (bug 1641546)
Backed out changeset a2b64d290c0b (bug 1641546)
Backed out changeset 2dc2a430c2e7 (bug 1641546)
Backed out changeset 041cd14e3893 (bug 1641546)
2020-06-06 19:13:06 +03:00
Mike Conley daad35ae28 Bug 1641546 - Make sure alwaysontop windows don't pull focus when first opening on Linux GTK. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D77695
2020-06-05 09:16:30 +00:00
jayati 95217fe3b5 Bug 1606554 - Remove accidently introduced stub gdk_window_get_visible_region. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D69508

--HG--
extra : moz-landing-system : lando
2020-04-03 11:09:12 +00:00
Andreea Pavel c42cdaa80e Backed out changeset 93335e047c83 (bug 1600414) for causing mochitest and wpt failures on a CLOSED TREE 2020-02-05 13:16:41 +02:00
Martin Stransky 638be9db98 Bug 1600414 Use gdk_window_set_geometry_hints() to set geometry hints, r=jhorak
Use gdk_window_set_geometry_hints() instead of gtk_window_set_geometry_hints() as gdk_*
does not set base sizes which breaks KDE and other window managers.

Differential Revision: https://phabricator.services.mozilla.com/D61552

--HG--
extra : moz-landing-system : lando
2020-02-05 09:16:44 +00:00
Ben Iofel b92dbf5479 Bug 726479 - Use GTK's support for startup notifications, r=karlt
Original author: Ben Iofel <iofelben@gmail.com>

Differential Revision: https://phabricator.services.mozilla.com/D58594

--HG--
extra : moz-landing-system : lando
2020-01-06 12:03:38 +00:00
Martin Stransky a684c2e36e Bug 1489463 - [Linux/Gtk] Call OnSizeAllocate() explicitly also from OnConfigureEvent(), r=jhorak
Usually we update mBounds from OnSizeAllocate() which is called
by Gtk when mContainer changes its actual size.

However we need to set mBounds in advance at Resize() as JS
code expect immediate window size change. When Resize() is called between
SetSizeMode() calls (which maximize/unmaximize the window) we can miss
OnSizeAllocate() Gtk call as actual mContainer size may not change
from Gtk perspective and we end up with incorrect mBounds.

To compensate it call OnSizeAllocate() explicitly also
from OnConfigureEvent() after size mode change.

Differential Revision: https://phabricator.services.mozilla.com/D55941

--HG--
extra : moz-landing-system : lando
2019-12-17 06:40:07 +00:00
Csoregi Natalia f79d5374e0 Backed out changeset c9c256a84d8d (bug 1489463) for failures on browser_roundedWindow_windowSetting_max_inner.js. CLOSED TREE 2019-12-16 15:45:33 +02:00
Martin Stransky 2df2f216c3 Bug 1489463 - [Linux/Gtk] Call OnSizeAllocate() explicitly also from OnConfigureEvent(), r=jhorak
Usually we update mBounds from OnSizeAllocate() which is called
by Gtk when mContainer changes its actual size.

However we need to set mBounds in advance at Resize() as JS
code expect immediate window size change. When Resize() is called between
SetSizeMode() calls (which maximize/unmaximize the window) we can miss
OnSizeAllocate() Gtk call as actual mContainer size may not change
from Gtk perspective and we end up with incorrect mBounds.

To compensate it call OnSizeAllocate() explicitly also
from OnConfigureEvent().

Differential Revision: https://phabricator.services.mozilla.com/D55941

--HG--
extra : moz-landing-system : lando
2019-12-16 09:52:27 +00:00
Tim Nguyen 9b84d66049 Bug 1597120 - Support dynamic changes to CSS pointer-events on nsMenuPopupFrame. r=karlt,jmathies,mstange,emilio
Differential Revision: https://phabricator.services.mozilla.com/D53379

--HG--
extra : moz-landing-system : lando
2019-11-22 13:14:37 +00:00
Sylvestre Ledru fc2eb5393c Bug 1562642 - Part 2 - Add missing MPL2 headers r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D37146

--HG--
extra : moz-landing-system : lando
2019-07-08 09:27:47 +00:00
Gurzau Raul b0fcd74087 Backed out changeset bb73a4c99331 (bug 1562141) for build failures at nsWindow.cpp on a CLOSED TREE. 2019-06-29 14:21:59 +03:00
Martin Stransky 40de4d717b Bug 1562141 - [Wayland] Hide/show popup when it's positioned by gdk_window_move_to_rect() and it's visible, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D36331

--HG--
extra : moz-landing-system : lando
2019-06-28 15:02:11 +00:00
Tom Schuster 52fd03bbb5 Bug 1532103 - Implement nsWidgetInitData::mAlwaysOnTop. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D21846

--HG--
extra : moz-landing-system : lando
2019-03-05 15:40:33 +00:00
Ehsan Akhgari e5e885ae31 Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
# ignore-this-changeset

--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Tom Schuster 69e26a2b4d Bug 1497580 - use gtk_target_list_add_text_targets for text/unicode clipboard data r=karlt
Using gtk_targets_include_text actually leads to a small behavior difference,
because gtk_targets_include_text also includes text/plain.

But gtk_selection_data_set_text seems to correctly convert UTF-8 to plain text.

Differential Revision: https://phabricator.services.mozilla.com/D8283

--HG--
extra : moz-landing-system : lando
2018-10-10 21:44:41 +00:00
Tim Nguyen 446b765bc6 Bug 1496836 - Set colorpicker widget as modal if parent widget is also modal on GTK. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D8199

--HG--
extra : moz-landing-system : lando
2018-10-10 20:21:39 +00:00