From e6b21aec267339fd1e68d458b86ecab093a7c9cf Mon Sep 17 00:00:00 2001 From: Jonathan Blandford Date: Mon, 1 Mar 2004 21:35:25 +0000 Subject: new function. Long name. Mon Mar 1 16:32:52 2004 Jonathan Blandford * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new_with_backend): new function. Long name. --- gtk/gtkfilechooserwidget.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'gtk/gtkfilechooserwidget.c') diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index 9054ae98be..631a4b7500 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -221,3 +221,28 @@ gtk_file_chooser_widget_new (GtkFileChooserAction action) "action", action, NULL); } + +/** + * gtk_file_chooser_widget_new: + * @action: Open or save mode for the widget + * @backend: The name of the specific filesystem backend to use. + * + * Creates a new #GtkFileChooserWidget with a specified backend. This is + * especially useful if you use gtk_file_chooser_set_local_only() to allow + * non-local files. This is a file chooser widget that can be embedded in + * custom windows and it is the same widget that is used by + * #GtkFileChooserDialog. + * + * Return value: a new #GtkFileChooserWidget + * + * Since: 2.4 + **/ +GtkWidget * +gtk_file_chooser_widget_new_with_backend (GtkFileChooserAction action, + const gchar *backend) +{ + return g_object_new (GTK_TYPE_FILE_CHOOSER_WIDGET, + "action", action, + "file-system-backend", backend, + NULL); +} -- cgit v1.2.1