Merge lp:~elementary-apps/pantheon-terminal/fix-fullscreen into lp:~elementary-apps/pantheon-terminal/trunk

Proposed by David Gomes
Status: Merged
Approved by: Niclas Lockner
Approved revision: 565
Merged at revision: 565
Proposed branch: lp:~elementary-apps/pantheon-terminal/fix-fullscreen
Merge into: lp:~elementary-apps/pantheon-terminal/trunk
Diff against target: 33 lines (+1/-5)
1 file modified
src/PantheonTerminalWindow.vala (+1/-5)
To merge this branch: bzr merge lp:~elementary-apps/pantheon-terminal/fix-fullscreen
Reviewer Review Type Date Requested Status
Niclas Lockner (community) Approve
Review via email: mp+216771@code.launchpad.net

Commit message

Removes some window.margin_top legacy code and fixes bug #1308781.

Description of the change

Yes, I realize this is a bad branch name but I can't find the associated bug ID, which should be put in the final commit message.

Basically, we had a workaround for Terminal's old title bar and we (cough cough Daniel) forgot to remove some legacy code.

This does that and fixes a bug in the Terminal where coming back from fullscreen would add an empty margin on top.

To post a comment you must log in.
Revision history for this message
David Gomes (davidgomes) wrote :

Daniel found the bug, it's bug 1308781.

Revision history for this message
Niclas Lockner (niclasl) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/PantheonTerminalWindow.vala'
2--- src/PantheonTerminalWindow.vala 2014-04-15 14:17:12 +0000
3+++ src/PantheonTerminalWindow.vala 2014-04-22 19:34:21 +0000
4@@ -265,10 +265,8 @@
5
6 if (PantheonTerminal.saved_state.window_state == PantheonTerminalWindowState.MAXIMIZED) {
7 maximize ();
8- notebook.margin_top = 3;
9 } else if (PantheonTerminal.saved_state.window_state == PantheonTerminalWindowState.FULLSCREEN) {
10 fullscreen ();
11- notebook.margin_top = 0;
12 }
13
14 /* Reset saved state to avoid restoring it again */
15@@ -617,11 +615,9 @@
16
17 void action_fullscreen () {
18 if (is_fullscreen) {
19- notebook.margin_top = 3;
20 unfullscreen ();
21 is_fullscreen = false;
22 } else {
23- notebook.margin_top = 0;
24 fullscreen ();
25 is_fullscreen = true;
26 }
27@@ -676,4 +672,4 @@
28 action_fullscreen }
29 };
30 }
31-}
32\ No newline at end of file
33+}

Subscribers

People subscribed via source and target branches