* src/Report.py (BareReportDialog.init_interface): Set up buttons

with proper response values; (report): Ignore everything except
RESPONSE_OK.
* src/plugins/BookReport.py (BookReportSelector.on_setup_clicked,
BookReportDialog.__init__): Ignore everything except RESPONSE_OK.


svn: r3956
This commit is contained in:
Alex Roitman
2005-01-24 23:39:50 +00:00
parent c918e902db
commit 6b74907d80
3 changed files with 27 additions and 32 deletions

View File

@@ -46,6 +46,7 @@ except:
# GTK/Gnome modules
#
#-------------------------------------------------------------------------
from gtk import RESPONSE_OK
import gtk.glade
#-------------------------------------------------------------------------
@@ -785,7 +786,7 @@ class BookReportSelector:
item_dialog = BookItemDialog(self.db,option_class,item.get_name(),
item.get_translated_name())
response = item_dialog.window.run()
if response == True and item_dialog.person and data[1] != _("Title"):
if response == RESPONSE_OK and item_dialog.person and data[1] != _("Title"):
self.bk_model.model.set_value(the_iter,2,
item_dialog.person.get_primary_name().get_regular_name())
self.book.set_item(row,item)
@@ -980,7 +981,7 @@ class BookReportDialog(Report.ReportDialog):
this_style_name,style_sheet.get_style(this_style_name))
response = self.window.run()
if response == True:
if response == RESPONSE_OK:
try:
self.make_report()
except (IOError,OSError),msg: