![]() | ![]() | ![]() | Conglomerate Programmer's Reference Manual | ![]() |
---|
cong-file-selectioncong-file-selection — |
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 : | Title of the dialog. |
uri : | File or path to start with. Can be NULL. |
parent_window : | Window to place dialog over. Can be NULL. |
action : | CongFileChooserAction, for example, CONG_FILE_CHOOSER_ACTION_OPEN |
list_of_filters : | 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);
title : | |
filename : | |
parent_window : | |
action : | |
list_of_filters : | |
output_filter : | |
Returns : |
GList* cong_file_selection_make_xml_filter_list (void);
Returns : |
<< cong-progress-checklist | cong-edit-find-and-replace >> |