![]() |
![]() |
![]() |
Conglomerate Programmer's Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
enum CongFileChooserAction; gchar * cong_get_file_name (const gchar *title, const gchar *uri, GtkWindow *parent_window, CongFileChooserAction action, GList *list_of_filters); gchar * cong_get_file_name_with_filter (const gchar *title, const gchar *filename, GtkWindow *parent_window, CongFileChooserAction action, GList *list_of_filters, GtkFileFilter **output_filter); GList * cong_file_selection_make_xml_filter_list (void);
typedef enum { CONG_FILE_CHOOSER_ACTION_OPEN, CONG_FILE_CHOOSER_ACTION_SAVE } CongFileChooserAction;
gchar * cong_get_file_name (const gchar *title, const gchar *uri, GtkWindow *parent_window, CongFileChooserAction action, GList *list_of_filters);
This function can be used to present file chooser dialog and allow user to select a file.
|
Title of the dialog. |
|
File or path to start with. Can be NULL. |
|
Window to place dialog over. Can be NULL .
|
|
CongFileChooserAction, for example, CONG_FILE_CHOOSER_ACTION_OPEN
|
|
GList of GtkFileFilter, often you can create it with cong_file_selection_make_xml_filter_list. |
Returns : |
file URI string (Note that it is valid escaped uri, not usual filename, since in theory conglomerate fully use gnome-vfs. |
gchar * cong_get_file_name_with_filter (const gchar *title, const gchar *filename, GtkWindow *parent_window, CongFileChooserAction action, GList *list_of_filters, GtkFileFilter **output_filter);
|
|
|
|
|
|
|
|
|
|
|
|
Returns : |
GList * cong_file_selection_make_xml_filter_list (void);
Returns : |