GtkWarning when there are no items to display

Bug #630244 reported by William Friesen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kupfer
Fix Released
Undecided
Unassigned

Bug Description

When a Source is entered but has no items to display, the following warning is shown in a terminal...

/usr/share/kupfer/kupfer/ui/browser.py:515: GtkWarning: gtk_window_resize: assertion `height > 0' failed
  self.list_window.resize(subwin_width, subwin_height)

I have noticed this when Pidgin Contacts is entered and either no contacts are online, or pidgin is closed. I'm sure there would be other cases, too.

With this patch, if the proposed height is 0, then defaults will be used. I chose the height of 200 since that is the default for when there are too many items to show without scrolling.

Revision history for this message
William Friesen (william-friesen) wrote :
Revision history for this message
X (u78qir8a9-deactivatedaccount) wrote :

thanks

Changed in kupfer:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.