Constructor
GtkFileChooserButtonnew_with_dialog
since: 2.6
Declaration [src]
GtkWidget*
gtk_file_chooser_button_new_with_dialog (
GtkWidget* dialog
)
Description [src]
Creates a GtkFileChooserButton
widget which uses dialog
as its
file-picking window.
Note that dialog
must be a GtkDialog
(or subclass) which
implements the GtkFileChooser
interface and must not have
GTK_DIALOG_DESTROY_WITH_PARENT
set.
Also note that the dialog needs to have its confirmative button
added with response GTK_RESPONSE_ACCEPT
or GTK_RESPONSE_OK
in
order for the button to take over the file selected in the dialog.
Available since: 2.6
Parameters
dialog
-
Type:
GtkDialog
The widget to use as dialog.
The data is owned by the caller of the function.
Return value
Type: GtkWidget
A new button widget.
The data is owned by the called function. |