Bugs: Browse | Submit New | Admin

[#29479] alexandria-0.6.8 crushes on "Adding a book" dialog.

Date:
2011-12-18 02:16
Priority:
3
Submitted By:
Tomoh K. (ichelm)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
alexandria-0.6.8 crushes on "Adding a book" dialog.

Detailed description
I am using alexandria-0.6.8 with ruby-1.8.7_p352, ruby-gtk-1.0.3, on Gentoo Linux.

Steps To Reproduce.
1. Launch Alexandria.
2. "Add a book..."
3. Enter ISBN and do "Add", or Enter search strings and do "Find".

Actual Results.
Alexandria crushes with backtrace.
/usr/lib64/ruby/site_ruby/1.8/alexandria/ui/dialogs/new_book_dialog.rb:577:in `update': undefined method `status=' for
#<Gtk::Statusbar:0x7f54929781d0 ptr=0x272b600>
	 from /usr/lib64/ruby/site_ruby/1.8/alexandria/ui/gtk_thread_help.rb:72:in `call'
	 from /usr/lib64/ruby/site_ruby/1.8/alexandria/ui/gtk_thread_help.rb:72:in `main_with_queue'
	 from /usr/lib64/ruby/site_ruby/1.8/alexandria/ui/gtk_thread_help.rb:71:in `each'
	 from /usr/lib64/ruby/site_ruby/1.8/alexandria/ui/gtk_thread_help.rb:71:in `main_with_queue'
	 from /usr/lib64/ruby/1.8/monitor.rb:242:in `synchronize'
	 from /usr/lib64/ruby/site_ruby/1.8/alexandria/ui/gtk_thread_help.rb:70:in `main_with_queue'
	 from /usr/lib64/ruby/site_ruby/1.8/alexandria/ui/gtk_thread_help.rb:78:in `call'
	 from /usr/lib64/ruby/site_ruby/1.8/alexandria/ui/gtk_thread_help.rb:78:in `main'
	 from /usr/lib64/ruby/site_ruby/1.8/alexandria/ui/gtk_thread_help.rb:78:in `main_with_queue'
	 from /usr/lib64/ruby/site_ruby/1.8/alexandria/ui.rb:45:in `start_gtk'
	 from /usr/lib64/ruby/site_ruby/1.8/alexandria/ui.rb:50:in `main'
	 from /usr/lib64/ruby/site_ruby/1.8/alexandria.rb:40:in `main'
	 from /usr/bin/alexandria:34

It seems to you've simply forgot to replace duplicated hack with new method 'set_status_label' ;-)
A patch is attached.
Regards.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2011-12-24 17:59
Sender: Mamoru Tasaka

I also see this issue on Fedora rawhide, and the attached patch
really fixes this issue (for me).

Attached Files:

Name Description Download
alexandria-0.6.8-set_status_label.patch A patch for new_book_dialog.rb Download

Changes:

Field Old Value Date By
File Added5445: alexandria-0.6.8-set_status_label.patch2011-12-18 02:16ichelm