Index: gtk/gtkfilechooserbutton.c
===================================================================
--- gtk/gtkfilechooserbutton.c	(revision 21841)
+++ gtk/gtkfilechooserbutton.c	(working copy)
@@ -2911,5 +2911,30 @@ gtk_file_chooser_button_get_focus_on_cli
   return button->priv->focus_on_click;
 }
 
+/**
+ * gtk_file_chooser_button_select_none:
+ * @button: a #GtkFileChooserButton
+ *
+ * Resets selection in the button to 'None', same as when it has been initially created.
+ * 
+ * Since: 2.16
+ **/
+void
+gtk_file_chooser_button_select_none (GtkFileChooserButton *button)
+{
+  g_return_if_fail (GTK_IS_FILE_CHOOSER_BUTTON (button));
+  
+  gtk_file_chooser_unselect_all (GTK_FILE_CHOOSER (button->priv->dialog));
+
+  if (button->priv->old_file)
+    {
+      g_object_unref (button->priv->old_file);
+      button->priv->old_file = NULL;
+    }
+
+  update_label_and_image (button);
+  update_combo_box (button);
+}
+
 #define __GTK_FILE_CHOOSER_BUTTON_C__
 #include "gtkaliasdef.c"
Index: gtk/gtkfilechooserbutton.h
===================================================================
--- gtk/gtkfilechooserbutton.h	(revision 21841)
+++ gtk/gtkfilechooserbutton.h	(working copy)
@@ -87,6 +87,8 @@ gboolean              gtk_file_chooser_b
 void                  gtk_file_chooser_button_set_focus_on_click (GtkFileChooserButton *button,
                                                                   gboolean              focus_on_click);
 
+void                  gtk_file_chooser_button_select_none      (GtkFileChooserButton *button);
+
 G_END_DECLS
 
 #endif /* !__GTK_FILE_CHOOSER_BUTTON_H__ */
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 21841)
+++ ChangeLog	(working copy)
@@ -1,3 +1,11 @@
+2008-12-03  Milan Crha  <mcrha@redhat.com>
+
+	Bug 563010 – be able to select 'None' in the file chooser button
+
+	* gtk/gtkfilechooserbutton.h: (gtk_file_chooser_button_select_none):
+	* gtk/gtkfilechooserbutton.c: (gtk_file_chooser_button_select_none):
+	New API to be able to select 'None' in the file chooser button.
+
 2008-12-03  Marek Kasik  <mkasik@redhat.com>
 
 	Bug 559914 – eog doesn't apply paper setup.
