cong-file-selection

cong-file-selection

Functions

Types and Values

Description

Functions

cong_get_file_name ()

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.

Parameters

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.


cong_get_file_name_with_filter ()

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);


cong_file_selection_make_xml_filter_list ()

GList *
cong_file_selection_make_xml_filter_list
                               (void);

Types and Values

enum CongFileChooserAction

Members

CONG_FILE_CHOOSER_ACTION_OPEN

   

CONG_FILE_CHOOSER_ACTION_SAVE