]> Pileus Git - ~andy/gtk/commit
filechooserbutton: Don't show the (None) item when the combo box is popped up
authorFederico Mena Quintero <federico@gnome.org>
Thu, 7 Mar 2013 23:20:16 +0000 (17:20 -0600)
committerFederico Mena Quintero <federico@gnome.org>
Fri, 8 Mar 2013 02:45:58 +0000 (20:45 -0600)
commit67f5e595a796a8321d6dc7737c58476564998c07
tree8a4cdb0ca36ccd86a764ff766db54a2db51d7ba2
parent1074aa0c49f647ed4b2a969618051c59da5aad01
filechooserbutton: Don't show the (None) item when the combo box is popped up

This is surprisingly tricky, since the (None) item *has* to be a visible item while
the combo box is *not* popped up, so that it can show its contents.  But the item
has to be *not* visible when the combo box is popped up.

Also, update the whole button's selection, not just the underlying dialog's, when
the combo box changes its selection - based on a patch by Paul Davis in
https://bugzilla.gnome.org/show_bug.cgi?id=691040#c20

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
gtk/gtkfilechooserbutton.c