GNOME Bugzilla – Bug 685313
Dragging a launcher from the app view: make the grid button insensitive
Last modified: 2012-10-07 16:21:37 UTC
If I drag a launcher from the applications view, it looks like I can drop it onto the grid button. What's more, holding the launcher over the grid button reveals a label which says "Remove from Favorites" (even though the app isn't a favorite). We should make the grid button look insensitive when a drag is initiated from the applications view. We should also make sure that the "Remove from Favorites" label isn't displayed in this situation.
In 3.5.92, the problem equally exists for launched applications that are not in favorites (so it’s not “when a drag is initiated from the applications view”).
Created attachment 225659 [details] [review] dash: Refactor some common code Take the code that gets an app from a "source" that's duplicated in lots of spots and refactor it out.
Created attachment 225660 [details] [review] dash: Clean up unused code
Created attachment 225661 [details] [review] dash: Make the show apps button insensitive when we're dragging a non-favorite This doesn't handle the tooltip case, unfortunately. That will come in a bit.
Created attachment 225662 [details] [review] dash: Make the tooltip and hover effect sync up to the real insensitivity We shouldn't display "Remove from Favorites" when dropping on the button will do nothing.
Created attachment 225663 [details] [review] dash: Construct the label at init Nothing doesn't use a label, so it doesn't make sense to lazily initialize it.
Created attachment 225664 [details] [review] dash: Make the dash items accessible
Created attachment 225665 [details] [review] dash: Only set the label's text when initially showing the label Having the tooltip change when it's visible looks strange and glitchy. This also makes sure that "Remove from Favorites" doesn't change, even when the user removes their mouse cursor from it.
Review for 3.6.1, please?
Review of attachment 225659 [details] [review]: Looks good.
Review of attachment 225660 [details] [review]: Looks good.
Review of attachment 225661 [details] [review]: Looks good.
Review of attachment 225662 [details] [review]: Looks good.
Review of attachment 225663 [details] [review]: OK.
Review of attachment 225664 [details] [review]: Looks good.
Review of attachment 225665 [details] [review]: Looks good.
Attachment 225659 [details] pushed as 147a6e4 - dash: Refactor some common code Attachment 225660 [details] pushed as f994ada - dash: Clean up unused code Attachment 225661 [details] pushed as 52871c7 - dash: Make the show apps button insensitive when we're dragging a non-favorite Attachment 225662 [details] pushed as 245e43e - dash: Make the tooltip and hover effect sync up to the real insensitivity Attachment 225663 [details] pushed as 36e5ae4 - dash: Construct the label at init Attachment 225664 [details] pushed as 06e5c25 - dash: Make the dash items accessible Attachment 225665 [details] pushed as 6487cd8 - dash: Only set the label's text when initially showing the label