Merge lp:~cjcurran/indicator-sound/use-name-in-desktop-and-do-not-shorten into lp:~indicator-applet-developers/indicator-sound/trunk_3

Proposed by Conor Curran
Status: Merged
Merged at revision: 106
Proposed branch: lp:~cjcurran/indicator-sound/use-name-in-desktop-and-do-not-shorten
Merge into: lp:~indicator-applet-developers/indicator-sound/trunk_3
Diff against target: 94 lines (+10/-9)
4 files modified
src/music-player-bridge.vala (+0/-1)
src/player-controller.vala (+8/-5)
src/title-menu-item.vala (+1/-2)
src/transport-menu-item.vala (+1/-1)
To merge this branch: bzr merge lp:~cjcurran/indicator-sound/use-name-in-desktop-and-do-not-shorten
Reviewer Review Type Date Requested Status
Mikkel Kamstrup Erlandsen (community) Approve
Review via email: mp+45144@code.launchpad.net

Description of the change

fixes problem described in bug attached. Upstream Banshee seem to be fine with the alteration to happen from their end and MPT agrees

To post a comment you must log in.
Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

 review approve

I think you might as well remove the lines you commented out. But no
biggie - definitely approved :-)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/music-player-bridge.vala'
2--- src/music-player-bridge.vala 2010-12-23 16:37:20 +0000
3+++ src/music-player-bridge.vala 2011-01-04 17:43:42 +0000
4@@ -27,7 +27,6 @@
5 private Dbusmenu.Menuitem root_menu;
6 private HashMap<string, PlayerController> registered_clients;
7 private Mpris2Watcher watcher;
8- private Settings settings;
9
10 public MusicPlayerBridge()
11 {
12
13=== modified file 'src/player-controller.vala'
14--- src/player-controller.vala 2010-12-20 18:02:50 +0000
15+++ src/player-controller.vala 2011-01-04 17:43:42 +0000
16@@ -44,7 +44,7 @@
17 public int current_state = state.OFFLINE;
18
19 private Dbusmenu.Menuitem root_menu;
20- public string name { get; set;}
21+ //public string name { get; set;}
22 public string dbus_name { get; set;}
23 public ArrayList<PlayerItem> custom_items;
24 public Mpris2Controller mpris_bridge;
25@@ -62,7 +62,7 @@
26 this.root_menu = root;
27 this.app_info = app;
28 this.dbus_name = dbus_name;
29- this.name = format_player_name(this.app_info.get_name());
30+ //this.name = this.app_info.get_name();
31 this.icon_name = icon_name;
32 this.custom_items = new ArrayList<PlayerItem>();
33 this.current_state = initial_state;
34@@ -74,7 +74,8 @@
35
36 public void update_state(state new_state)
37 {
38- debug("update_state - player controller %s : new state %i", this.name, new_state);
39+ debug("update_state - player controller %s : new state %i", this.app_info.get_name(),
40+ new_state);
41 this.current_state = new_state;
42 this.update_layout();
43 }
44@@ -93,13 +94,14 @@
45 */
46 public void instantiate()
47 {
48- debug("instantiate in player controller for %s", this.name);
49+ debug("instantiate in player controller for %s", this.app_info.get_name() );
50 try{
51 this.app_info.launch(null, null);
52 this.update_state(state.INSTANTIATING);
53 }
54 catch(GLib.Error error){
55- warning("Failed to launch app %s with error message: %s", this.name, error.message);
56+ warning("Failed to launch app %s with error message: %s", this.app_info.get_name(),
57+ error.message );
58 }
59 }
60
61@@ -181,6 +183,7 @@
62 }
63 }
64 }
65+
66
67 private static string format_player_name(owned string app_info_name)
68 {
69
70=== modified file 'src/title-menu-item.vala'
71--- src/title-menu-item.vala 2010-12-07 14:18:28 +0000
72+++ src/title-menu-item.vala 2011-01-04 17:43:42 +0000
73@@ -26,8 +26,7 @@
74 public TitleMenuitem(PlayerController parent)
75 {
76 Object(item_type: MENUITEM_TYPE, owner: parent);
77- this.property_set(MENUITEM_NAME, parent.name);
78- debug("title init - icon name = %s", parent.icon_name);
79+ this.property_set(MENUITEM_NAME, parent.app_info.get_name());
80 this.property_set(MENUITEM_ICON, parent.icon_name);
81 this.property_set_bool(MENUITEM_RUNNING, false);
82 }
83
84=== modified file 'src/transport-menu-item.vala'
85--- src/transport-menu-item.vala 2010-12-07 14:18:28 +0000
86+++ src/transport-menu-item.vala 2011-01-04 17:43:42 +0000
87@@ -51,7 +51,7 @@
88 {
89 int input = input_value.get_int();
90 debug("handle_event with value %s", input.to_string());
91- debug("transport owner name = %s", this.owner.name);
92+ debug("transport owner name = %s", this.owner.app_info.get_name());
93 this.owner.mpris_bridge.transport_update((action)input);
94 }
95

Subscribers

People subscribed via source and target branches