After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 617281 - Gnome-shell crashes when no apps are in the apps section
Gnome-shell crashes when no apps are in the apps section
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
2.29.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2010-04-30 13:07 UTC by Marc-Antoine Perennou
Modified: 2010-06-09 13:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[appDisplay] fix call nonexistent function (1.16 KB, patch)
2010-06-09 07:02 UTC, Maxim Ermilov
reviewed Details | Review
[appDisplay] fix call nonexistent function (1.40 KB, patch)
2010-06-09 11:02 UTC, Maxim Ermilov
committed Details | Review

Description Marc-Antoine Perennou 2010-04-30 13:07:06 UTC
On a newly installed system, running gnome-shell and mutter trunk, when I had not yet launched any application nor favorited any, I couldn't display the overview, it crashed each time my mouse hit the corner. Launching an app with Alt + F2 solved the problem.
Comment 1 Maxim Ermilov 2010-06-09 07:02:13 UTC
Created attachment 163172 [details] [review]
[appDisplay] fix call nonexistent function 

WellGrid switched from StBin to StBoxLayout. set_child left in rarely
used code.
Comment 2 Florian Müllner 2010-06-09 08:26:38 UTC
Review of attachment 163172 [details] [review]:

Looks good - just some minor comments here:

::: js/ui/appDisplay.js
@@ +1097,3 @@
         }
             this._grid.addItem(display.actor);
+        if (this._message) {

this._message should be initialized in _init()

@@ +1103,3 @@
         if (running.length == 0 && nFavorites == 0) {
 
+            this._message = new St.Label({ text: _("Drag here to add favorites") });

Not sure I like _message - _placeholderText maybe?
Comment 3 Maxim Ermilov 2010-06-09 11:02:05 UTC
Created attachment 163186 [details] [review]
[appDisplay] fix call nonexistent function
Comment 4 Florian Müllner 2010-06-09 11:17:09 UTC
Review of attachment 163186 [details] [review]:

Thanks! I'd suggest a commit message along the lines of:

[appDisplay] Fix crash when app well is empty

When the app well doesn't contain any applications, it displays a placeholder text
to indicate that it's a drop target. When porting WellGrid from St.Bin to St.BoxLayout,
the call to set_child() to set the text was overlooked.
Comment 5 Florian Müllner 2010-06-09 11:17:11 UTC
Review of attachment 163186 [details] [review]:

Thanks! I'd suggest a commit message along the lines of:

[appDisplay] Fix crash when app well is empty

When the app well doesn't contain any applications, it displays a placeholder text
to indicate that it's a drop target. When porting WellGrid from St.Bin to St.BoxLayout,
the call to set_child() to set the text was overlooked.