diff options
author | Jonathan Blandford <jrb@redhat.com> | 2004-03-01 21:35:25 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2004-03-01 21:35:25 +0000 |
commit | e6b21aec267339fd1e68d458b86ecab093a7c9cf (patch) | |
tree | af4d14f9f4c02f7f0f135d41dfb7ca9d77b1db19 | |
parent | 654178b44e4db2c53694bce1e654fdd9dfd197b3 (diff) | |
download | gtk+-e6b21aec267339fd1e68d458b86ecab093a7c9cf.tar.gz |
new function. Long name.
Mon Mar 1 16:32:52 2004 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkfilechooserwidget.c
(gtk_file_chooser_widget_new_with_backend): new function. Long
name.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-4 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 6 | ||||
-rw-r--r-- | gtk/gtkfilechooserwidget.c | 25 | ||||
-rw-r--r-- | gtk/gtkfilechooserwidget.h | 8 |
7 files changed, 60 insertions, 3 deletions
@@ -1,3 +1,9 @@ +Mon Mar 1 16:32:52 2004 Jonathan Blandford <jrb@redhat.com> + + * gtk/gtkfilechooserwidget.c + (gtk_file_chooser_widget_new_with_backend): new function. Long + name. + 2004-03-01 Morten Welinder <terra@gnome.org> * gtk/gtkfilesystemunix.c (filename_get_info): Only stat when diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index f698631700..4a4baf9385 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Mon Mar 1 16:32:52 2004 Jonathan Blandford <jrb@redhat.com> + + * gtk/gtkfilechooserwidget.c + (gtk_file_chooser_widget_new_with_backend): new function. Long + name. + 2004-03-01 Morten Welinder <terra@gnome.org> * gtk/gtkfilesystemunix.c (filename_get_info): Only stat when diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index f698631700..4a4baf9385 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +Mon Mar 1 16:32:52 2004 Jonathan Blandford <jrb@redhat.com> + + * gtk/gtkfilechooserwidget.c + (gtk_file_chooser_widget_new_with_backend): new function. Long + name. + 2004-03-01 Morten Welinder <terra@gnome.org> * gtk/gtkfilesystemunix.c (filename_get_info): Only stat when diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index f698631700..4a4baf9385 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Mon Mar 1 16:32:52 2004 Jonathan Blandford <jrb@redhat.com> + + * gtk/gtkfilechooserwidget.c + (gtk_file_chooser_widget_new_with_backend): new function. Long + name. + 2004-03-01 Morten Welinder <terra@gnome.org> * gtk/gtkfilesystemunix.c (filename_get_info): Only stat when diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index f698631700..4a4baf9385 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Mon Mar 1 16:32:52 2004 Jonathan Blandford <jrb@redhat.com> + + * gtk/gtkfilechooserwidget.c + (gtk_file_chooser_widget_new_with_backend): new function. Long + name. + 2004-03-01 Morten Welinder <terra@gnome.org> * gtk/gtkfilesystemunix.c (filename_get_info): Only stat when 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); +} diff --git a/gtk/gtkfilechooserwidget.h b/gtk/gtkfilechooserwidget.h index e52fc11fce..4974843096 100644 --- a/gtk/gtkfilechooserwidget.h +++ b/gtk/gtkfilechooserwidget.h @@ -50,9 +50,11 @@ struct _GtkFileChooserWidget GtkFileChooserWidgetPrivate *priv; }; -GType gtk_file_chooser_widget_get_type (void); -GtkWidget *gtk_file_chooser_widget_new (GtkFileChooserAction action); - +GType gtk_file_chooser_widget_get_type (void); +GtkWidget *gtk_file_chooser_widget_new (GtkFileChooserAction action); +GtkWidget *gtk_file_chooser_widget_new_with_backend (GtkFileChooserAction action, + const gchar *backend); G_END_DECLS #endif /* __GTK_FILE_CHOOSER_WIDGET_H__ */ +1 |