[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 4.9-53-g9b7f94a
Luca Bruno
lethalman88 at gmail.com
Wed Feb 3 19:41:36 UTC 2010
The following commit has been merged in the master branch:
commit 0c002433adf8e5729a8cc04ce04706c58f0ed0ba
Author: Luca Bruno <lethalman88 at gmail.com>
Date: Sat Jan 30 21:37:47 2010 +0100
rename Forward button to Continue button; Closes: #565140
diff --git a/debian/changelog b/debian/changelog
index 0f6545e..e6d0502 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+reportbug (4.10.3) UNRELEASED; urgency=low
+
+ * reportbug/ui/gtk2_ui.py:
+ - rename Forward button to Continue button; Closes: #565140
+
+ -- Luca Bruno <lethalman88 at gmail.com> Sat, 30 Jan 2010 21:02:50 +0100
+
reportbug (4.10.2) unstable; urgency=low
* reportbug/utils.py
diff --git a/reportbug/ui/gtk2_ui.py b/reportbug/ui/gtk2_ui.py
index 3caff9f..9951640 100644
--- a/reportbug/ui/gtk2_ui.py
+++ b/reportbug/ui/gtk2_ui.py
@@ -1271,7 +1271,7 @@ class ReportbugAssistant (gtk.Assistant):
self.application = application
self.set_title ('Reportbug')
- self.nuke_back_button ()
+ self.hack_buttons ()
self.showing_page = None
self.requested_page = None
self.progress_page = None
@@ -1280,7 +1280,7 @@ class ReportbugAssistant (gtk.Assistant):
self.connect_signals ()
self.setup_pages ()
- def nuke_back_cb (self, widget):
+ def _hack_buttons (self, widget):
# This is a real hack for two reasons:
# 1. There's no other way to access action area but inspecting the assistant and searching for the back button
# 2. Hide back button on show, because it can be shown-hidden by the assistant depending on the page
@@ -1288,11 +1288,17 @@ class ReportbugAssistant (gtk.Assistant):
if widget.get_label() == 'gtk-go-back':
widget.connect ('show', self.on_back_show)
return
+ if widget.get_label() == 'gtk-go-forward':
+ image = gtk.image_new_from_stock (gtk.STOCK_GO_BACK, gtk.ICON_SIZE_BUTTON)
+ widget.set_label ("_Continue")
+ widget.set_image (image)
+ return
+
if isinstance (widget, gtk.Container):
- widget.forall (self.nuke_back_cb)
+ widget.forall (self._hack_buttons)
- def nuke_back_button (self):
- self.nuke_back_cb (self)
+ def hack_buttons (self):
+ self._hack_buttons (self)
def connect_signals (self):
self.connect ('cancel', self.close)
--
Reportbug - reports bugs in the Debian distribution
More information about the Reportbug-commits
mailing list