Florian Müllner
a8d4c679eb
searchController: Adjust to Clutter.Stage.get_key_focus()
change
...
The method is now a plain getter of the `key-focus` property,
so handle the case where it returns null.
See https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4256
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3633 >
2025-02-14 20:22:59 +01:00
Bilal Elmoussaoui
aa0f2c4915
Use NULL for nick/blurb in GObject params
...
As they are only used by gstreamer for gst-inspect & other tools.
Projects like Mutter/gtk have completely dropped them as well, so follow
their path
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3505 >
2024-10-16 10:19:41 +00:00
Florian Müllner
105abab1e4
js: Remove modelines
...
We already include an .editorconfig that is supported by many
editors, including emacs, so no need to repeat an emacs-specific
modeline in every source file.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3431 >
2024-07-30 18:20:55 +00:00
Suryashankar Das
3cb1fb7428
overview: Hide search results while leaving overview
...
There is currently no proper transition from search results
to the session: Only the top bar fades, but the rest of the
screen just changes abruptly at the end of the transition.
Fix this by hiding search results before leaving the overview,
so the regular transition can take place.
Close https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3821
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3152 >
2024-01-30 03:59:45 +01:00
Sam Hewitt
ac7ef665a1
Use dedicated assets for ctrlAltTab
...
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3019 >
2023-11-23 13:33:08 +00:00
Sebastian Keller
ee5819f870
searchController: Use ClutterText::cursor_position instead of position
...
The deprecated position property has been removed in mutter commit
31849868 in favor of the otherwise identical cursor_position property.
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7186
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3015 >
2023-11-11 22:36:02 +01:00
Zander Brown
350cd296fa
js: Stop using ClutterContainer API
...
These have been long deprecated over in clutter, and (via several
vtables) simply forward the call to the equivalent ClutterActor methods
Save ourselves the hassle and just use ClutterActor methods directly
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3010 >
2023-11-10 20:19:13 +00:00
Florian Müllner
071f92cfb6
cleanup: Remove spaces in object literals
...
We only adopted this style relatively recently, so there's a bit
more to adjust. Still, it's manageable and another step towards
getting rid of the legacy style.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2866 >
2023-08-09 15:10:37 +00:00
Evan Welsh
a751e213f6
js: Port to modules
...
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1499 >
2023-08-06 13:02:49 +02:00
Evan Welsh
0705c7a4eb
js: Fix linting errors from line shifts
...
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2794 >
2023-06-21 04:50:33 -07:00
Evan Welsh
1e9b906cbc
js: Split gi imports to be on new lines to prepare for ES modules
...
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2794 >
2023-06-21 04:50:33 -07:00
Andy Holmes
32b9109967
overview: Provide public access for search provider registration
...
Provide a reasonably public way to register and unregister search
providers, without adding too much API.
`Main.overview.searchController` provides access that may be generally
useful, while `SearchController.addProvider()` and
`SearchController.removeProvider()` provide a simple interface for
extensions.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2783 >
2023-06-01 15:54:59 -07:00
Jonas Ådahl
e62eae74fd
searchController: Use connectObject for the stage key focus signal
...
This ensures it's properly disconnected on shutdown.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1349 >
2022-11-25 22:09:37 +01:00
Carlos Garnacho
6d895bf8a9
searchController: Avoid event.set_source() API
...
It does not make sense that the target actor is both destinatary
and content of the events being sent, so this API call is going away.
Since the event can be sent entirely unmodified (more so, it will
become immutable/readonly in the future), avoid creating a copy
since it does not matter sending one or other struct.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2216 >
2022-03-04 12:27:34 +00:00
Carlos Garnacho
dc0f286fe9
searchController: Query stage for target actor instead of event.get_source()
...
Events are going to stop containing the destinatary, so stop using this
API. Querying the stage is equivalent and ensured to be up-to-date.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2216 >
2022-03-04 12:27:34 +00:00
Marco Trevisan (Treviño)
cf41f4a527
searchController: Get rid of activePage reference in key handling
...
Even if activePage has been removed as part of commit 27627bd40, we've
still a reference of it in key press handler.
Given that there's no anymore an active page to redirect input to,
remove these references, so that can be handled in the proper view to
implement key-navigation.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1688 >
2021-02-17 02:31:32 +01:00
Georges Basile Stavracas Neto
1b51ae150d
searchController: General cleanup
...
Fix style issues, such as indentation and == → ===. Simplify
getTermsForSearchString() by removing one variable.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1667 >
2021-02-11 21:14:36 +00:00
Georges Basile Stavracas Neto
c8f1dca3c7
Rename ViewSelector to SearchController
...
Rename ViewSelector to SearchController, since ViewSelector now effectively
only handles search. Rename the file correspondingly as well.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1667 >
2021-02-11 21:14:36 +00:00