Merge lp:~tintou/pantheon-plugs/dynamic-freya-sound into lp:pantheon-plugs/dynamic-freya

Proposed by Corentin Noël
Status: Merged
Merged at revision: 29
Proposed branch: lp:~tintou/pantheon-plugs/dynamic-freya-sound
Merge into: lp:pantheon-plugs/dynamic-freya
Diff against target: 31 lines (+8/-0)
1 file modified
src/GccPanel.vala (+8/-0)
To merge this branch: bzr merge lp:~tintou/pantheon-plugs/dynamic-freya-sound
Reviewer Review Type Date Requested Status
elementary Pantheon team Pending
Review via email: mp+250550@code.launchpad.net

Commit message

[Sound] Do not show theme selector.
[BottomBar] Do not show if empty.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/GccPanel.vala'
2--- src/GccPanel.vala 2014-10-19 01:25:23 +0000
3+++ src/GccPanel.vala 2015-02-22 11:21:54 +0000
4@@ -141,6 +141,7 @@
5 }
6
7 action_bar = new Gtk.ActionBar ();
8+ action_bar.no_show_all = true;
9
10 // unfortunately we need some special behaviors
11 switch (type_name) {
12@@ -164,6 +165,12 @@
13
14 var stack = stack_from_notebook (notebook);
15 stack.margin = 12;
16+ var real_stack = (Gtk.Stack)search_widget_type ((Gtk.Container)stack, typeof (Gtk.Stack));
17+ var effect_panel = (Gtk.Container)real_stack.get_child_by_name ("2");
18+ foreach (var child in effect_panel.get_children ()) {
19+ if (child.get_type ().name () == "GvcSoundThemeChooser")
20+ child.destroy ();
21+ }
22 ((Gtk.Box) panel.get_child ()).pack_start (stack);
23
24 break;
25@@ -209,6 +216,7 @@
26 widget.show ();
27
28 action_bar.pack_end (widget);
29+ action_bar.no_show_all = false;
30 action_bar.show ();
31 }
32

Subscribers

People subscribed via source and target branches