gnome-shell/js/ui
Alessandro Bono ec6ab60e62 appDisplay: Don't assume this._placeholder always exists
Dropping a icon from the dash to the application grid will set this._placeholder
to null. However the AppIcon is still used to represent the application in the
application grid. If we click on it we emit a pressed event. Stop assuming
that this._placeholder is still valid in the callback, use the icon parameter
instead.

This fixes the following error:
```
Gjs-CRITICAL **: 18:22:39.003: JS ERROR: TypeError: this._placeholder is null
_ensurePlaceholder/<@resource:///org/gnome/shell/ui/appDisplay.js:1477:17
vfunc_button_press_event@resource:///org/gnome/shell/ui/appDisplay.js:3121:27
```

Fixes: 6fc93b78bc
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6317
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2606>
2023-01-16 20:24:26 +00:00
..
components js: Use async D-Bus wrappers 2022-08-01 18:51:14 +00:00
status quickSettings: Add separator before the "Power Settings" entry 2023-01-13 21:29:38 -03:00
accessDialog.js accessDialog: Change fallback button labels 2022-11-19 00:42:26 +00:00
altTab.js altTab: Always include label in thumbnail 2022-10-18 18:04:57 +00:00
animation.js
appDisplay.js appDisplay: Don't assume this._placeholder always exists 2023-01-16 20:24:26 +00:00
appFavorites.js Adopt EventEmitter class instead of injecting Signal methods 2022-07-04 18:30:49 -04:00
appMenu.js js: Queue 'later' via MetaLaters 2022-12-16 22:12:59 +01:00
audioDeviceSelection.js js: Queue 'later' via MetaLaters 2022-12-16 22:12:59 +01:00
background.js js: Get monitor manager from backend 2022-12-16 22:12:59 +01:00
backgroundMenu.js
barLevel.js
boxpointer.js
calendar.js calendar: Unbind settings when destroying 2022-11-25 22:09:37 +01:00
checkBox.js
closeDialog.js
ctrlAltTab.js
dash.js js: Queue 'later' via MetaLaters 2022-12-16 22:12:59 +01:00
dateMenu.js cleanup: Use deepUnpack() intead of deep_unpack() 2022-08-10 10:29:24 +00:00
dialog.js js: Queue 'later' via MetaLaters 2022-12-16 22:12:59 +01:00
dnd.js Adopt EventEmitter class instead of injecting Signal methods 2022-07-04 18:30:49 -04:00
edgeDragAction.js edgeDragAction: Change edge trigger threshold to AFTER 2022-05-27 09:29:26 +00:00
endSessionDialog.js loginManager: Return objects instead of multiple booleans 2022-08-01 20:58:37 +02:00
environment.js environment: Set time zero when animations are disabled 2022-11-04 14:14:34 +01:00
extensionDownloader.js
extensionSystem.js extensions: Refactor extension system for asynchronous loading 2022-12-01 12:59:32 +00:00
focusCaretTracker.js Adopt EventEmitter class instead of injecting Signal methods 2022-07-04 18:30:49 -04:00
grabHelper.js Require both mouse and keyboard grabs for some grabs to be successful 2022-05-04 17:28:08 +00:00
ibusCandidatePopup.js ibusCandidatePopup: Prevent it from covering screenshot UI 2022-07-04 13:38:15 +00:00
iconGrid.js js: Queue 'later' via MetaLaters 2022-12-16 22:12:59 +01:00
inhibitShortcutsDialog.js inhibitShorcutsDialog: Fix permission check 2022-11-19 00:48:25 +00:00
init.js
kbdA11yDialog.js kbdA11yDialog: Use MetaKeyboardA11yFlags 2022-06-16 09:38:20 +00:00
keyboard.js keyboard: Change osk menu entry to control-center keyboard pane 2022-11-24 13:49:55 +01:00
layout.js js: Get monitor manager from backend 2022-12-16 22:12:59 +01:00
lightbox.js
locatePointer.js
lookingGlass.js js: Queue 'later' via MetaLaters 2022-12-16 22:12:59 +01:00
magnifier.js Adopt EventEmitter class instead of injecting Signal methods 2022-07-04 18:30:49 -04:00
main.js js: Queue 'later' via MetaLaters 2022-12-16 22:12:59 +01:00
messageList.js messageList: Only close messages via delete key if they can be closed 2022-06-04 15:23:45 +02:00
messageTray.js
modalDialog.js Require both mouse and keyboard grabs for some grabs to be successful 2022-05-04 17:28:08 +00:00
mpris.js cleanup: Use deepUnpack() intead of deep_unpack() 2022-08-10 10:29:24 +00:00
notificationDaemon.js cleanup: Use deepUnpack() intead of deep_unpack() 2022-08-10 10:29:24 +00:00
osdMonitorLabeler.js js: Get monitor manager from backend 2022-12-16 22:12:59 +01:00
osdWindow.js
overview.js overview: Start animation after setting coverPane initial state 2022-11-25 15:19:37 +00:00
overviewControls.js overview: Make preparation to enter/leave overview explicit 2022-11-25 15:19:37 +00:00
padOsd.js padOsd: Replace Gtk accelerator API usage with Mutter 2023-01-02 13:26:49 +01:00
pageIndicators.js
panel.js panel: Add PanelMenu.Button menu when menu-set is emitted 2022-09-17 17:56:21 +00:00
panelMenu.js
pointerA11yTimeout.js
pointerWatcher.js
popupMenu.js popupMenu: Close quick settings when activating settings action 2022-08-02 16:05:28 +00:00
quickSettings.js js: Queue 'later' via MetaLaters 2022-12-16 22:12:59 +01:00
remoteSearch.js search: Stop special-casing GNOME Settings on search 2022-12-15 19:02:02 +00:00
ripples.js
runDialog.js runDialog: Use single quotes for Wayland restart warning 2022-05-31 18:35:41 +00:00
screenShield.js js: Queue 'later' via MetaLaters 2022-12-16 22:12:59 +01:00
screenshot.js screenshot: Cache ScreencastSupported property 2022-11-09 11:15:04 +00:00
scripting.js tests: Add test running basic perf test 2022-11-25 22:09:53 +01:00
search.js js: Queue 'later' via MetaLaters 2022-12-16 22:12:59 +01:00
searchController.js searchController: Use connectObject for the stage key focus signal 2022-11-25 22:09:37 +01:00
sessionMode.js fileUtils: Refactor collectFromDatadirs to be a generator 2022-12-01 12:59:32 +00:00
shellDBus.js js: Get monitor manager from backend 2022-12-16 22:12:59 +01:00
shellEntry.js shellEntry: Remove unused variable 2022-10-14 22:32:30 +00:00
shellMountOperation.js
slider.js
swipeTracker.js swipeTracker: Set up 1fg drag gesture in capture phase 2022-08-10 17:11:26 +00:00
switcherPopup.js
switchMonitor.js js: Get monitor manager from backend 2022-12-16 22:12:59 +01:00
unlockDialog.js lockscreen: Style cleanup for lock and login 2023-01-06 11:29:31 +00:00
userWidget.js
welcomeDialog.js
windowAttentionHandler.js
windowManager.js js: Get monitor manager from backend 2022-12-16 22:12:59 +01:00
windowMenu.js
windowPreview.js js: Queue 'later' via MetaLaters 2022-12-16 22:12:59 +01:00
workspace.js workspace: Port WorkspaceBackground allocate to C 2022-08-03 12:30:31 +00:00
workspaceAnimation.js
workspacesView.js js: Queue 'later' via MetaLaters 2022-12-16 22:12:59 +01:00
workspaceSwitcherPopup.js
workspaceThumbnail.js js: Queue 'later' via MetaLaters 2022-12-16 22:12:59 +01:00
xdndHandler.js Adopt EventEmitter class instead of injecting Signal methods 2022-07-04 18:30:49 -04:00