Use default title if NULL is passed.

2005-01-06  James M. Cape  <jcape@ignore-your.tv>

	* gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
	(gtk_file_chooser_button_new_with_backend): Use default title if
	NULL is passed.

	* docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
	match API.
This commit is contained in:
James M. Cape
2005-01-06 06:25:30 +00:00
committed by James M. Cape
parent 0e8c3f4a2f
commit 977a557a67
6 changed files with 44 additions and 6 deletions

View File

@ -20,7 +20,8 @@ property to %TRUE.
{
GtkWidget *button;
button = gtk_file_chooser_button_new (_("Select a file"));
button = gtk_file_chooser_button_new (_("Select a file"),
GTK_FILE_CHOOSER_ACTION_OPEN);
gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (button),
"/etc");
}