Merge lp:~paulliu/ubiquity/navigation_hide2 into lp:ubiquity

Proposed by Ying-Chun Liu
Status: Merged
Merged at revision: 4435
Proposed branch: lp:~paulliu/ubiquity/navigation_hide2
Merge into: lp:ubiquity
Diff against target: 17 lines (+7/-0)
1 file modified
ubiquity/frontend/gtk_ui.py (+7/-0)
To merge this branch: bzr merge lp:~paulliu/ubiquity/navigation_hide2
Reviewer Review Type Date Requested Status
Evan (community) Approve
Review via email: mp+40779@code.launchpad.net

Description of the change

Hi,

Some customers want a customized ubiquity plugin (first page) with their own forward/back buttons.
So we add a function to hide/show the original navigation buttons. Customers plugin can draw their own buttons in ui files and connect to go_forward by themselves.

Please consider including this patch.

Many Thanks

==
Due to wrongly branch from lp:ubuntu/ubiquity. Please ignore
https://code.launchpad.net/~paulliu/ubiquity/navigation_hide/+merge/40751
Sorry.

To post a comment you must log in.
Evan (ev) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubiquity/frontend/gtk_ui.py'
2--- ubiquity/frontend/gtk_ui.py 2010-11-04 15:17:33 +0000
3+++ ubiquity/frontend/gtk_ui.py 2010-11-13 06:49:02 +0000
4@@ -164,6 +164,13 @@
5 def get_string(self, name, lang=None, prefix=None):
6 return self._wizard.get_string(name, lang, prefix)
7
8+ def toggle_navigation_control(self,hideFlag):
9+ if hideFlag:
10+ self._wizard.navigation_control.show()
11+ else:
12+ self._wizard.navigation_control.hide()
13+ self._wizard.refresh()
14+
15 class Wizard(BaseFrontend):
16
17 def __init__(self, distro):

Subscribers

People subscribed via source and target branches

to status/vote changes: