Merge lp:~ted/indicator-application/proper-ordering into lp:indicator-application/0.4

Proposed by Ted Gould
Status: Merged
Merged at revision: 190
Proposed branch: lp:~ted/indicator-application/proper-ordering
Merge into: lp:indicator-application/0.4
Diff against target: 42 lines (+8/-4)
2 files modified
data/ordering-override.keyfile (+5/-4)
src/application-service-appstore.c (+3/-0)
To merge this branch: bzr merge lp:~ted/indicator-application/proper-ordering
Reviewer Review Type Date Requested Status
Conor Curran (community) Approve
Review via email: mp+53313@code.launchpad.net

Description of the change

Actually order the items to fixed locations. Oh, and move the networking one so it's closest to the system indicators.

To post a comment you must log in.
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

I know this is a tiny detail, but I'd prefer it overall the items were, starting from the end, in order from greatest to least likelihood of being there at all. That maximizes the overall probability that a menu on one Ubuntu computer will be in exactly the same place on another Ubuntu computer.

So, starting from the end:
- session menu
- clock
- sound menu
- network
- battery
- me
- messaging
- ibus
- keyboard.

(I don't know the difference between gsd-keyboard-xkb and gst-keyboard-xkb.)

Revision history for this message
Conor Curran (cjcurran) :
review: Approve
Revision history for this message
Ted Gould (ted) wrote :

On Tue, 2011-03-15 at 11:25 +0000, Matthew Paul Thomas wrote:
> I know this is a tiny detail, but I'd prefer it overall the items were,
> starting from the end, in order from greatest to least likelihood of
> being there at all. That maximizes the overall probability that a menu
> on one Ubuntu computer will be in exactly the same place on another
> Ubuntu computer.

I agree with this goal, but I think that with us making the large change
from GNOME panel to Unity this cycle we shouldn't reorder the indicators
that are staying (roughly) the same. So I'd propose:

- session
- me
- clock
- messaging
- sound
- network
- battery
- ibus
- keyboard

Would that work?

> (I don't know the difference between gsd-keyboard-xkb and gst-keyboard-xkb.)

It was a typo in some versions so I've left it in. We could probably
drop it at this point though.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/ordering-override.keyfile'
2--- data/ordering-override.keyfile 2010-08-20 15:13:35 +0000
3+++ data/ordering-override.keyfile 2011-03-14 20:01:51 +0000
4@@ -1,5 +1,6 @@
5 [Ordering Index Overrides]
6-gnome-power-manager=1
7-gst-keyboard-xkb=2
8-gsd-keyboard-xkb=3
9-ibus=4
10+nm_applet=1
11+gnome-power-manager=2
12+gst-keyboard-xkb=3
13+gsd-keyboard-xkb=4
14+ibus=5
15
16=== modified file 'src/application-service-appstore.c'
17--- src/application-service-appstore.c 2011-02-25 13:45:31 +0000
18+++ src/application-service-appstore.c 2011-03-14 20:01:51 +0000
19@@ -374,6 +374,7 @@
20 g_return_if_fail(filename != NULL);
21
22 if (!g_file_test(filename, G_FILE_TEST_EXISTS)) {
23+ g_debug("Override file '%s' doesn't exist", filename);
24 return;
25 }
26
27@@ -486,6 +487,7 @@
28 } /* else ignore */
29 }
30 g_variant_iter_free (iter);
31+ g_variant_unref(properties);
32
33 if (menu == NULL || id == NULL || category == NULL || status == NULL ||
34 icon_name == NULL) {
35@@ -524,6 +526,7 @@
36 app->ordering_index = GPOINTER_TO_UINT(ordering_index_over);
37 }
38 g_debug("'%s' ordering index is '%X'", app->id, app->ordering_index);
39+ app->appstore->priv->applications = g_list_sort_with_data(app->appstore->priv->applications, app_sort_func, NULL);
40
41 if (label != NULL) {
42 app->label = g_variant_dup_string(label, NULL);

Subscribers

People subscribed via source and target branches