| GTK+ Reference Manual |
|---|
GtkFileChooserButton —
#include <gtk/gtk.h> struct GtkFileChooserButton; GtkWidget* gtk_file_chooser_button_new (const gchar *title); GtkWidget* gtk_file_chooser_button_new_with_backend (const gchar *title, const gchar *backend); GtkWidget* gtk_file_chooser_button_new_with_dialog (GtkWidget *dialog); G_CONST_RETURN gchar* gtk_file_chooser_button_get_title (GtkFileChooserButton *button); void gtk_file_chooser_button_set_title (GtkFileChooserButton *button, const gchar *title); gboolean gtk_file_chooser_button_get_active (GtkFileChooserButton *button); void gtk_file_chooser_button_set_active (GtkFileChooserButton *button, gboolean is_active);
GtkWidget* gtk_file_chooser_button_new (const gchar *title);
Creates a new file-selecting button widget.
| title : | the title of the browse dialog. |
| Returns : | a new button widget. |
Since 2.6
GtkWidget* gtk_file_chooser_button_new_with_backend (const gchar *title, const gchar *backend);
Creates a new file-selecting button widget using backend.
| title : | the title of the browse dialog. |
| backend : | the name of the GtkFileSystem backend to use. |
| Returns : | a new button widget. |
Since 2.6
GtkWidget* gtk_file_chooser_button_new_with_dialog (GtkWidget *dialog);
Creates a GtkFileChooserButton widget which uses dialog as it's file-picking window. Note that dialog must be a GtkFileChooserDialog (or subclass).
| dialog : | the GtkDialog widget to use. |
| Returns : | a new button widget. |
Since 2.6
G_CONST_RETURN gchar* gtk_file_chooser_button_get_title (GtkFileChooserButton *button);
Retrieves the title of the browse dialog used by button. The returned value should not be modified or freed.
| button : | the button widget to examine. |
| Returns : | a pointer to the browse dialog's title. |
Since 2.6
void gtk_file_chooser_button_set_title
(GtkFileChooserButton *button,
const gchar *title);Modifies the title of the browse dialog used by button.
| button : | the button widget to modify. |
| title : | the new browse dialog title. |
Since 2.6
gboolean gtk_file_chooser_button_get_active (GtkFileChooserButton *button);
Retrieves whether or not the dialog attached to button is visible.
| button : | the button widget to examine. |
| Returns : | a boolean whether the dialog is visible or not. |
Since 2.6
void gtk_file_chooser_button_set_active
(GtkFileChooserButton *button,
gboolean is_active);Modifies whether or not the dialog attached to button is visible or not.
| button : | the button widget to modify. |
| is_active : | whether or not the dialog is visible. |
Since 2.6
| << GtkFileSelection | GtkFileChooser >> |