Merge lp://qastaging/~11111nonononono-deactivatedaccount-deactivatedaccount-deactivatedaccount/do-plugins/maximize-volume into lp://qastaging/do-plugins

Proposed by No
Status: Merged
Merged at revision: not available
Proposed branch: lp://qastaging/~11111nonononono-deactivatedaccount-deactivatedaccount-deactivatedaccount/do-plugins/maximize-volume
Merge into: lp://qastaging/do-plugins
Diff against target: None lines
To merge this branch: bzr merge lp://qastaging/~11111nonononono-deactivatedaccount-deactivatedaccount-deactivatedaccount/do-plugins/maximize-volume
Reviewer Review Type Date Requested Status
Do Plugins Team Pending
Review via email: mp+6425@code.qastaging.launchpad.net

Commit message

Make it possible to maximize volume (LP: #374306)

To post a comment you must log in.
Revision history for this message
No (11111nonononono-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

Please merge this as it fixes LP: #374306. There is now the possibility to maximize the volume.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'VolumeControl/Makefile.am'
2--- VolumeControl/Makefile.am 2009-01-09 03:35:25 +0000
3+++ VolumeControl/Makefile.am 2009-05-11 14:07:32 +0000
4@@ -7,6 +7,7 @@
5 src/VolumeDownItem.cs \
6 src/VolumeMuteItem.cs \
7 src/VolumeUnmuteItem.cs \
8+ src/VolumeMaximizeItem.cs \
9 src/VolumeItemSource.cs
10
11 RESOURCES = \
12
13=== modified file 'VolumeControl/VolumeControl.mdp'
14--- VolumeControl/VolumeControl.mdp 2009-02-28 16:16:48 +0000
15+++ VolumeControl/VolumeControl.mdp 2009-05-11 14:07:32 +0000
16@@ -19,6 +19,7 @@
17 <File name="src/VolumeDownItem.cs" subtype="Code" buildaction="Compile" />
18 <File name="src/VolumeMuteItem.cs" subtype="Code" buildaction="Compile" />
19 <File name="src/VolumeUnmuteItem.cs" subtype="Code" buildaction="Compile" />
20+ <File name="src/VolumeMaximizeItem.cs" subtype="Code" buildaction="Compile" />
21 <File name="src/VolumeItemSource.cs" subtype="Code" buildaction="Compile" />
22 <File name="Resources/VolumeControl.addin.xml" subtype="Code" buildaction="EmbedAsResource" />
23 </Contents>
24@@ -28,4 +29,4 @@
25 <ProjectReference type="Gac" localcopy="True" refto="Do.Universe, Version=0.8.0.0, Culture=neutral, PublicKeyToken=null" />
26 <ProjectReference type="Gac" localcopy="True" refto="Do.Platform, Version=0.8.0.0, Culture=neutral, PublicKeyToken=null" />
27 </References>
28-</Project>
29\ No newline at end of file
30+</Project>
31
32=== modified file 'VolumeControl/src/VolumeItemSource.cs'
33--- VolumeControl/src/VolumeItemSource.cs 2008-12-21 23:44:34 +0000
34+++ VolumeControl/src/VolumeItemSource.cs 2009-05-11 14:07:32 +0000
35@@ -50,6 +50,7 @@
36 public override IEnumerable<Type> SupportedItemTypes {
37 get { return new Type [] {
38 typeof (VolumeDownItem),
39+ typeof (VolumeMaximizeItem),
40 typeof (VolumeMuteItem),
41 typeof (VolumeUnmuteItem),
42 typeof (VolumeUpItem), };
43@@ -71,6 +72,7 @@
44 private Item [] VolumeItems {
45 get { return new Item [] {
46 new VolumeDownItem (),
47+ new VolumeMaximizeItem(),
48 new VolumeMuteItem (),
49 new VolumeUnmuteItem (),
50 new VolumeUpItem (), };
51
52=== added file 'VolumeControl/src/VolumeMaximizeItem.cs'
53--- VolumeControl/src/VolumeMaximizeItem.cs 1970-01-01 00:00:00 +0000
54+++ VolumeControl/src/VolumeMaximizeItem.cs 2009-05-11 14:07:32 +0000
55@@ -0,0 +1,47 @@
56+/* VolumeMaximizeItem.cs
57+ *
58+ * GNOME Do is the legal property of its developers. Please refer to the
59+ * COPYRIGHT file distributed with this
60+ * source distribution.
61+ *
62+ * This program is free software: you can redistribute it and/or modify
63+ * it under the terms of the GNU General Public License as published by
64+ * the Free Software Foundation, either version 3 of the License, or
65+ * (at your option) any later version.
66+ *
67+ * This program is distributed in the hope that it will be useful,
68+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
69+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
70+ * GNU General Public License for more details.
71+ *
72+ * You should have received a copy of the GNU General Public License
73+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
74+ */
75+
76+using System;
77+
78+using Do.Universe;
79+using Mono.Unix;
80+
81+namespace VolumeControl
82+{
83+ public class VolumeMaximizeItem : Item, IRunnableItem
84+ {
85+ public override string Name {
86+ get { return Catalog.GetString ("Maximize Volume"); }
87+ }
88+
89+ public override string Description {
90+ get { return Catalog.GetString ("Maximize system volume"); }
91+ }
92+
93+ public override string Icon {
94+ get { return "audio-volume-high"; }
95+ }
96+
97+ public void Run ()
98+ {
99+ System.Diagnostics.Process.Start ("amixer set Master 100% > /dev/null");
100+ }
101+ }
102+}

Subscribers

People subscribed via source and target branches