Merge lp:~tigrangab/plank/focused_window_font into lp:plank

Proposed by Tigran Gabrielyan
Status: Merged
Merged at revision: 951
Proposed branch: lp:~tigrangab/plank/focused_window_font
Merge into: lp:plank
Diff against target: 12 lines (+2/-0)
1 file modified
lib/Items/ApplicationDockItem.vala (+2/-0)
To merge this branch: bzr merge lp:~tigrangab/plank/focused_window_font
Reviewer Review Type Date Requested Status
Rico Tzschichholz Approve
Robert Dyer (community) Needs Information
Danielle Foré Pending
Review via email: mp+199349@code.launchpad.net

Description of the change

When there are multiple windows opened of the same application, make the focused windows menu entry bold to know which one is focused.

To post a comment you must log in.
Revision history for this message
Robert Dyer (psybers) wrote :

I wonder if maybe it makes more sense to just remove the entry from the list...

I'm not a fan of the menu items changing often (based on context). Perhaps we could leave it and make it disabled?

Again, I'm asking for input from Dan here.

review: Needs Information
Revision history for this message
Tigran Gabrielyan (tigrangab) wrote :

The change for that is trivial, so just let me know the design choice, and I will fix it.

Revision history for this message
Rico Tzschichholz (ricotz) wrote :

I like it as it looks now. Hiding items for actual visible windows is not a good idea.

Two notes:
* I would only add the focus action for non-active windows.
* explicit use of copy "var font_description = window_item.get_pango_context ().get_font_description ().copy ();"

Revision history for this message
Danielle Foré (danrabbit) wrote :

I agree with Robert that insensitive makes more sense than bold.

In the case of switching windows, I think you're precisely not looking for the active window. So making it stand out by making it bold I think draws your attention in the opposite of the desired direction.

I also agree with Rico that removing the item doesn't sound right.

Revision history for this message
Rico Tzschichholz (ricotz) wrote :

OK, making them only insensitive seems fine then.

review: Needs Fixing
944. By Tigran Gabrielyan

Make active window's menu item insensitive

Revision history for this message
Tigran Gabrielyan (tigrangab) wrote :

I changed it to make it insensitive, here's how it looks: http://i.imgur.com/amDQcuW.png

Revision history for this message
Rico Tzschichholz (ricotz) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/Items/ApplicationDockItem.vala'
2--- lib/Items/ApplicationDockItem.vala 2014-01-21 12:42:02 +0000
3+++ lib/Items/ApplicationDockItem.vala 2014-01-21 19:04:18 +0000
4@@ -433,6 +433,8 @@
5 else
6 window_item = create_menu_item (window.get_name (), Icon, true);
7 window_item.activate.connect (() => WindowControl.focus_window (window));
8+ if (window.is_active ())
9+ window_item.set_sensitive (false);
10 items.add (window_item);
11 }
12 }

Subscribers

People subscribed via source and target branches

to status/vote changes: