gnome-control-center/shell
Nelson Benítez León c2ef0f6e5e shell: prevent loading last-panel unconditionally on startup
We currently load the last-panel every time gnome-control-center
is launched, we do it from the CcWindow contructor method.

But we shouldn't do it when we are explicitly opening a different
panel by eg. using commandline parameter (gnome-control-center keyboard)
or from a DBus method, because otherwise we slow things down by
unnecesarily start launching last-panel just to be cancelled
moments later when the code starts processing the other panel.

We fix it by moving the code that loads last-panel to an idle
handler, so by the time it gets executed the other panel has
already started loading, and we can check for that with the
cc_panel_list_get_current_panel() function we add in this patch.

With this patch, I can feel that panels opened from a
gnome-shell search are presented faster.

Fixes issue #2569
2023-07-18 09:28:29 +00:00
..
appdata flatpak, shell: Make desktop file honor "Devel" app_id 2022-11-24 14:16:47 +01:00
completions window: Remove remaining overview mentions 2018-05-28 22:07:49 -03:00
icons shell: Remove no longer used icon 2022-08-17 08:09:15 +00:00
cc-application.c log: Improve logging 2022-12-01 11:44:17 +00:00
cc-application.h application: Subclass AdwApplication 2021-12-14 22:34:21 -03:00
cc-log.c log: Show logs from Bluetooth panel 2023-01-25 09:55:34 +00:00
cc-log.h log: Improve logging 2022-12-01 11:44:17 +00:00
cc-object-storage.c object-cache: Avoid use after free of task error 2022-10-19 19:52:21 +02:00
cc-object-storage.h object-storage: Introduce CcObjectStorage 2018-04-06 22:23:38 -03:00
cc-panel-list.c shell: prevent loading last-panel unconditionally on startup 2023-07-18 09:28:29 +00:00
cc-panel-list.h shell: prevent loading last-panel unconditionally on startup 2023-07-18 09:28:29 +00:00
cc-panel-list.ui shell: improve key nav between search entry and results list 2023-06-06 13:01:23 +00:00
cc-panel-loader.c thunderbolt: Hide panel if there's no thunderbolt hardware 2022-12-15 14:02:02 +01:00
cc-panel-loader.h panel: Add "title" property 2022-01-20 02:23:42 +00:00
cc-panel-private.h panel: Add 'folded' property 2022-01-20 02:23:42 +00:00
cc-panel.c shell: Deactivate old panel before creating new one 2022-06-20 03:18:30 +00:00
cc-panel.h shell: Deactivate old panel before creating new one 2022-06-20 03:18:30 +00:00
cc-panel.ui general: Add tooltips to headerbar controls 2023-06-06 13:27:00 +00:00
cc-shell-model.c desktop: Remove obsolete Bugzilla entries 2022-10-20 13:20:09 +00:00
cc-shell-model.h shell: Show the submenu icon hint for the applications panel 2019-11-28 11:20:41 +13:00
cc-shell.c shell: Remove cc_shell_set_custom_titlebar 2022-01-20 02:23:42 +00:00
cc-shell.h shell: Remove cc_shell_set_custom_titlebar 2022-01-20 02:23:42 +00:00
cc-window.c shell: prevent loading last-panel unconditionally on startup 2023-07-18 09:28:29 +00:00
cc-window.h window: Port to GTK4 2021-12-14 22:34:21 -03:00
cc-window.ui general: Add tooltips to headerbar controls 2023-06-06 13:27:00 +00:00
gnome-control-center.gresource.xml shell: Remove no longer used icon 2022-08-17 08:09:15 +00:00
help-overlay.ui help-overlay: remove visible property names 2022-11-30 12:57:29 +00:00
list-panel.sh shell: Ensure completion is sorted by default 2013-02-11 09:37:55 +01:00
main.c shell: Refuse to run under unsupported desktops 2023-02-10 13:16:19 +00:00
meson.build all: meson: do not specify resources from gresource files as dependencies 2023-05-24 08:34:14 +00:00
org.gnome.Settings.desktop.in shell: Refuse to run under unsupported desktops 2023-02-10 13:16:19 +00:00
org.gnome.Settings.gschema.xml Replace "application" with "app" 2023-01-23 11:10:28 +00:00
org.gnome.Settings.service.in flatpak, shell: Make desktop file honor "Devel" app_id 2022-11-24 14:16:47 +01:00
style.css shell/style: Add workaround to make disabled pictures are painted as such 2023-03-28 13:52:12 +00:00