Merge lp:~larsu/indicator-power/lp845037 into lp:indicator-power/12.10

Proposed by Lars Karlitski
Status: Work in progress
Proposed branch: lp:~larsu/indicator-power/lp845037
Merge into: lp:indicator-power/12.10
Diff against target: 30 lines (+3/-3)
1 file modified
src/indicator-power.c (+3/-3)
To merge this branch: bzr merge lp:~larsu/indicator-power/lp845037
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
jenkins (community) continuous-integration Approve
Charles Kerr Pending
Review via email: mp+106643@code.launchpad.net

Description of the change

Request menu-sized icons. This should go along with the ubuntu-mono patch which removes the padding around the battery icons.

To post a comment you must log in.
Revision history for this message
jenkins (martin-mrazik+qa) wrote :

PASSED: Continuous integration, rev:140
http://s-jenkins:8080/job/indicator-power-ci/1/

review: Approve (continuous-integration)
Revision history for this message
Charles Kerr (charlesk) wrote :

Wow, this one has been sitting around for a long time.

Lars, I gave this a spin and it makes the device icons in the menu =really= tiny compared to the ones in the spec.

Revision history for this message
Charles Kerr (charlesk) wrote :

I don't see a way to attach files to a merge proposal, but here's what this patch looks like on my computer: http://i.imgur.com/fF25Y.png

The spec's drawing's look like this:
https://wiki.ubuntu.com/Power?action=AttachFile&do=get&target=power-menu.png

Revision history for this message
Lars Karlitski (larsu) wrote :

Thanks for taking a look.

I haven't looked into it yet, but maybe the icons still have padding around them? Maybe it's just that something is wrong with GTK_ICON_SIZE_MENU. I really want to use it instead of _BUTTON, though. They are used in menus after all.

Please don't merge it yet until we've resolved this.

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Icons and text should have the same size relationship to each other, in menu items as they do in menu titles.

For example, if menu title text and menu item text use the same font size, menu title icons and menu item icons should be the same size as each other too.

Maybe here the battery icon looks tiny because it is trying to fit (a) a narrow shape into (b) square proportions. Either of those would be okay by itself, but the combination is bad.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Adolfo Jayme Barrientos (fitojb) wrote :

What stopped this branch from landing? If the icon was the problem, we should fix that.

Unmerged revisions

140. By Lars Karlitski

Request menu-sized icons

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/indicator-power.c'
2--- src/indicator-power.c 2012-04-15 14:23:24 +0000
3+++ src/indicator-power.c 2012-05-21 15:29:20 +0000
4@@ -584,7 +584,7 @@
5 /* Process the data */
6 device_gicons = get_device_icon (kind, state, time, device_icon);
7 icon = gtk_image_new_from_gicon (device_gicons,
8- GTK_ICON_SIZE_SMALL_TOOLBAR);
9+ GTK_ICON_SIZE_MENU);
10 g_clear_object (&device_gicons);
11
12 device_name = device_kind_to_localised_string (kind);
13@@ -807,7 +807,7 @@
14 device_gicons = get_device_icon (kind, state, time, device_icon);
15 gtk_image_set_from_gicon (self->status_image,
16 device_gicons,
17- GTK_ICON_SIZE_LARGE_TOOLBAR);
18+ GTK_ICON_SIZE_MENU);
19 g_clear_object (&device_gicons);
20 gtk_widget_show (GTK_WIDGET (self->status_image));
21
22@@ -984,7 +984,7 @@
23 /* Will create the status icon if it doesn't exist already */
24 gicon = g_themed_icon_new (DEFAULT_ICON);
25 self->status_image = GTK_IMAGE (gtk_image_new_from_gicon (gicon,
26- GTK_ICON_SIZE_LARGE_TOOLBAR));
27+ GTK_ICON_SIZE_MENU));
28 }
29
30 return self->status_image;

Subscribers

People subscribed via source and target branches