Merge lp:~radkemat/switchboard/bitesize into lp:~elementary-pantheon/switchboard/switchboard

Proposed by Matthis Radke
Status: Merged
Approved by: Tom Beckmann
Approved revision: 489
Merged at revision: 491
Proposed branch: lp:~radkemat/switchboard/bitesize
Merge into: lp:~elementary-pantheon/switchboard/switchboard
Diff against target: 21 lines (+2/-2)
1 file modified
src/Switchboard.vala (+2/-2)
To merge this branch: bzr merge lp:~radkemat/switchboard/bitesize
Reviewer Review Type Date Requested Status
Tom Beckmann (community) Approve
Julián Unrrein (community) Needs Fixing
Review via email: mp+231773@code.launchpad.net

Commit message

don't slide in the alert screen

Description of the change

Fixes Bug #1322895
Just overwriting the stack transition type temporarily.

To post a comment you must log in.
Revision history for this message
Julián Unrrein (junrrein) wrote :

The string still slides out when you clear the search field.

review: Needs Fixing
Revision history for this message
Julián Unrrein (junrrein) wrote :

string->screen

Revision history for this message
Tom Beckmann (tombeckmann) wrote :

I suppose it would make more sense to use http://valadoc.org/#!api=gtk+-3.0/Gtk.Stack.set_visible_child_full here, which appears to be specifically designed for this use case.

review: Needs Information
lp:~radkemat/switchboard/bitesize updated
489. By Matthis Radke

[ShowingAlert]: this is now a much more elegant solution and will not slide when clearing the search field.

Revision history for this message
Matthis Radke (radkemat) wrote :

I fixed it now as per Toms recommendation (thanks btw).
What is the correct procedure, to submit the patch of the patch?

Revision history for this message
Tom Beckmann (tombeckmann) wrote :

You did everything correctly, all looks good :)

Thanks for the fix!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Switchboard.vala'
2--- src/Switchboard.vala 2014-08-02 18:32:31 +0000
3+++ src/Switchboard.vala 2014-09-03 16:10:22 +0000
4@@ -146,15 +146,15 @@
5
6 public void hide_alert () {
7 alert_view.no_show_all = true;
8+ stack.set_visible_child_full ("main", Gtk.StackTransitionType.NONE);
9 alert_view.hide ();
10- stack.set_visible_child (category_scrolled);
11 }
12
13 public void show_alert (string primary_text, string secondary_text, Gtk.MessageType type) {
14 alert_view.no_show_all = false;
15 alert_view.show_all ();
16 alert_view.set_alert (primary_text, secondary_text, null, true, type);
17- stack.set_visible_child (alert_view);
18+ stack.set_visible_child_full ("alert", Gtk.StackTransitionType.NONE);
19 }
20
21 public void load_plug (Switchboard.Plug plug) {

Subscribers

People subscribed via source and target branches

to all changes: