Merge lp:~elementary-apps/wingpanel-indicator-sound/reduce-margins into lp:~wingpanel-devs/wingpanel-indicator-sound/trunk

Proposed by Danielle Foré
Status: Rejected
Rejected by: Danielle Foré
Proposed branch: lp:~elementary-apps/wingpanel-indicator-sound/reduce-margins
Merge into: lp:~wingpanel-devs/wingpanel-indicator-sound/trunk
Diff against target: 101 lines (+9/-13)
3 files modified
src/Indicator.vala (+2/-2)
src/Widgets/IndicatorScale.vala (+2/-4)
src/Widgets/MprisGui.vala (+5/-7)
To merge this branch: bzr merge lp:~elementary-apps/wingpanel-indicator-sound/reduce-margins
Reviewer Review Type Date Requested Status
Cody Garver (community) Needs Resubmitting
Review via email: mp+260900@code.launchpad.net

Commit message

reduce extra margins

Description of the change

Reduces extra margins to match notification margin (#1461294)

To post a comment you must log in.
Revision history for this message
Cody Garver (codygarver) wrote :

Conflicts with trunk

review: Needs Resubmitting
Revision history for this message
Djax (parnold-x) wrote :

I included this already...

Unmerged revisions

5. By Danielle Foré

kill extra margins

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/Indicator.vala'
--- src/Indicator.vala 2015-06-02 19:41:45 +0000
+++ src/Indicator.vala 2015-06-02 23:17:43 +0000
@@ -189,7 +189,7 @@
189 main_grid.attach (first_seperator, 0, position++, 1, 1);189 main_grid.attach (first_seperator, 0, position++, 1, 1);
190190
191 volume_scale = new Widgets.IndicatorScale ("audio-volume-high-symbolic", true, 0.0, max_volume, 0.01);191 volume_scale = new Widgets.IndicatorScale ("audio-volume-high-symbolic", true, 0.0, max_volume, 0.01);
192 volume_scale.margin_start = 12;192 volume_scale.margin_start = 6;
193193
194 volume_scale.get_switch ().active = volume_control.mute;194 volume_scale.get_switch ().active = volume_control.mute;
195 volume_scale.get_switch ().notify["active"].connect (() => {195 volume_scale.get_switch ().notify["active"].connect (() => {
@@ -216,7 +216,7 @@
216 main_grid.attach (new Wingpanel.Widgets.IndicatorSeparator (), 0, position++, 1, 1);216 main_grid.attach (new Wingpanel.Widgets.IndicatorSeparator (), 0, position++, 1, 1);
217217
218 mic_scale = new Widgets.IndicatorScale ("audio-input-microphone-symbolic", true, 0.0, 1.0, 0.01);218 mic_scale = new Widgets.IndicatorScale ("audio-input-microphone-symbolic", true, 0.0, 1.0, 0.01);
219 mic_scale.margin_start = 12;219 mic_scale.margin_start = 6;
220220
221 mic_scale.get_switch ().notify["active"].connect (() => {221 mic_scale.get_switch ().notify["active"].connect (() => {
222 if (mic_scale.get_switch ().active) {222 if (mic_scale.get_switch ().active) {
223223
=== modified file 'src/Widgets/IndicatorScale.vala'
--- src/Widgets/IndicatorScale.vala 2015-06-02 19:41:45 +0000
+++ src/Widgets/IndicatorScale.vala 2015-06-02 23:17:43 +0000
@@ -22,8 +22,6 @@
2222
23 public IndicatorScale (string icon, bool active = false, double min, double max, double step) {23 public IndicatorScale (string icon, bool active = false, double min, double max, double step) {
24 this.hexpand = true;24 this.hexpand = true;
25 this.margin_top = 6;
26 this.margin_bottom = 3;
2725
28 image = new Gtk.Image.from_icon_name (icon, Gtk.IconSize.DIALOG);26 image = new Gtk.Image.from_icon_name (icon, Gtk.IconSize.DIALOG);
29 image.halign = Gtk.Align.START;27 image.halign = Gtk.Align.START;
@@ -31,7 +29,7 @@
31 this.attach (image, 0, 0, 1, 1);29 this.attach (image, 0, 0, 1, 1);
3230
33 scale_widget = new Gtk.Scale.with_range (Gtk.Orientation.HORIZONTAL, min, max, step);31 scale_widget = new Gtk.Scale.with_range (Gtk.Orientation.HORIZONTAL, min, max, step);
34 scale_widget.margin_start = 12;32 scale_widget.margin_start = 6;
35 scale_widget.set_size_request (175, -1);33 scale_widget.set_size_request (175, -1);
36 scale_widget.set_draw_value (false);34 scale_widget.set_draw_value (false);
37 this.attach (scale_widget, 1, 0, 1, 1);35 this.attach (scale_widget, 1, 0, 1, 1);
@@ -39,7 +37,7 @@
39 switch_widget = new Gtk.Switch ();37 switch_widget = new Gtk.Switch ();
40 switch_widget.active = active;38 switch_widget.active = active;
41 switch_widget.halign = Gtk.Align.END;39 switch_widget.halign = Gtk.Align.END;
42 switch_widget.margin_start = 12;40 switch_widget.margin_start = 6;
43 switch_widget.margin_end = 0;41 switch_widget.margin_end = 0;
4442
45 this.attach (switch_widget, 2, 0, 1, 1);43 this.attach (switch_widget, 2, 0, 1, 1);
4644
=== modified file 'src/Widgets/MprisGui.vala'
--- src/Widgets/MprisGui.vala 2015-06-02 19:41:45 +0000
+++ src/Widgets/MprisGui.vala 2015-06-02 23:17:43 +0000
@@ -39,14 +39,14 @@
39 * @param client The underlying MprisClient instance to use39 * @param client The underlying MprisClient instance to use
40 */40 */
41 public ClientWidget(Services.MprisClient client) {41 public ClientWidget(Services.MprisClient client) {
42 Object(orientation: Gtk.Orientation.VERTICAL, spacing: 3);42 Object(orientation: Gtk.Orientation.VERTICAL, spacing: 0);
4343
44 this.client = client;44 this.client = client;
45 load_remote_art_cancel = new Cancellable ();45 load_remote_art_cancel = new Cancellable ();
4646
47 player_revealer = new Gtk.Revealer ();47 player_revealer = new Gtk.Revealer ();
48 player_revealer.reveal_child = true;48 player_revealer.reveal_child = true;
49 var player_box = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 3);49 var player_box = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 0);
5050
51 if (client.player.desktop_entry != "") {51 if (client.player.desktop_entry != "") {
52 var ainfo = new DesktopAppInfo(client.player.desktop_entry + ".desktop");52 var ainfo = new DesktopAppInfo(client.player.desktop_entry + ".desktop");
@@ -63,10 +63,8 @@
63 background.set_from_icon_name("emblem-music-symbolic", Gtk.IconSize.DIALOG);63 background.set_from_icon_name("emblem-music-symbolic", Gtk.IconSize.DIALOG);
64 }64 }
6565
66 background.margin_start = 12;66 background.margin_start = 6;
67 background.margin_end = 6;67 background.margin_end = 6;
68 this.margin_top = 6;
69 this.margin_bottom = 6;
7068
71 player_box.pack_start(background, false, false, 0);69 player_box.pack_start(background, false, false, 0);
7270
@@ -84,7 +82,7 @@
84 titles.pack_start(artist_label, false, false, 0);82 titles.pack_start(artist_label, false, false, 0);
85 player_box.pack_start(titles, false, false, 0);83 player_box.pack_start(titles, false, false, 0);
8684
87 var controls = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 6);85 var controls = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 0);
8886
89 var btn = new Gtk.Button.from_icon_name("media-seek-backward-symbolic", Gtk.IconSize.LARGE_TOOLBAR);87 var btn = new Gtk.Button.from_icon_name("media-seek-backward-symbolic", Gtk.IconSize.LARGE_TOOLBAR);
90 btn.set_sensitive(false);88 btn.set_sensitive(false);
@@ -268,4 +266,4 @@
268 artist_label.set_text(_("Not currently playing"));266 artist_label.set_text(_("Not currently playing"));
269 }267 }
270 }268 }
271}
272\ No newline at end of file269\ No newline at end of file
270}

Subscribers

People subscribed via source and target branches

to all changes: