Pressing about twice doesn't show aboutdialog correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Olifant |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
If you press about button twice, or more, shows an aboutdialog deformed, a 1x1 window.
glnew.py:59: GtkWarning: gdk_x11_
aboutdialog.run()
glnew.py:59: GtkWarning: gtk_widget_show: assertion `GTK_IS_WIDGET (widget)' failed
aboutdialog.run()
glnew.py:59: GtkWarning: gtk_widget_hide: assertion `GTK_IS_WIDGET (widget)' failed
aboutdialog.run()
glnew.py:59: GtkWarning: gtk_label_set_text: assertion `GTK_IS_LABEL (label)' failed
aboutdialog.run()
glnew.py:59: GtkWarning: gtk_container_
aboutdialog.run()
Revision: http://
Changed in olifant: | |
status: | New → Confirmed |
assignee: | nobody → Ivan (inovembri) |
status: | Confirmed → In Progress |
I think destroy() is destroying every control in the window, and must be initialized again.
A possible fix is to move the initialization code (everything between # About Dialog and # tray icon) to show_about, so it looks like this:
def show_about(widget, data=None): set_name( 'Olifant' ) set_logo( gtk.gdk. pixbuf_ new_from_ file('pixmaps/ icon.png' )) destroy( )
aboutdialog = gtk.AboutDialog()
aboutdialog.
...
aboutdialog.
aboutdialog.run()
aboutdialog.