Removing all favorites makes it impossible to add new ones

Show the placeholder when all favorites are gone.
https://bugzilla.gnome.org/show_bug.cgi?id=591854
This commit is contained in:
Maxim Ermilov 2009-10-27 14:54:23 +03:00 committed by Owen W. Taylor
parent 6d9aadfa4d
commit 3ebb0f149d

View File

@ -860,6 +860,13 @@ AppWell.prototype = {
let display = new RunningWellItem(app, false);
this._grid.actor.add_actor(display.actor);
}
if (this._grid.actor.get_n_children() == 1) {
let text = new Clutter.Text({ color: GenericDisplay.ITEM_DISPLAY_NAME_COLOR,
font_name: "Sans 14px",
text: _("Drag here to add favorites")});
this._grid.actor.add_actor(text);
}
},
// Draggable target interface