Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | gtk_file_list_new () |
void | gtk_file_list_construct () |
void | gtk_file_list_set_filter () |
gboolean | gtk_file_list_open_dir () |
const gchar * | gtk_file_list_get_path () |
const gchar * | gtk_file_list_get_filename () |
gint | gtk_file_list_get_filetype () |
gint | gtk_file_list_add_type () |
gint | gtk_file_list_add_type_with_pixmap () |
void | gtk_file_list_add_type_filter () |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkContainer ╰── GtkFixed ╰── GtkIconList ╰── GtkFileList
It is a GtkIconList subclass that displays the contents of a given directory using fancy icons for different types of files
GtkWidget * gtk_file_list_new (guint icon_width
,gint mode
,const gchar *path
);
Create a newfile list widget. Remark for the 2nd open file window you must use: gtk_icon_file_selection_show_tree(GTK_ICON_FILESEL(filesel), TRUE);
icon_width |
the width of the icon |
|
mode |
GTK_FILE_LIST_SORT_NAME , GTK_FILE_LIST_SORT_TYPE |
|
path |
the path to the files to be be opened in GtkFileList widget. |
void gtk_file_list_construct (GtkFileList *file_list
,guint icon_width
,gint mode
,const gchar *path
);
Initializes newfile list widget with specified values.
file_list |
GtkFileList widget |
|
icon_width |
the width of the icon |
|
mode |
GTK_FILE_LIST_SORT_NAME , GTK_FILE_LIST_SORT_TYPE |
|
path |
the path to the files to be be opened in GtkFileList widget. |
void gtk_file_list_set_filter (GtkFileList *file_list
,const gchar *filter
);
Sets a filter for files displayed in Open window.
gboolean gtk_file_list_open_dir (GtkFileList *file_list
,const gchar *dir_path
);
Opens the content of specified directory in GtkFileList widget.
file_list |
a GtkFileList widget |
|
dir_path |
path of directory to be opened in GtkFileList widget |
const gchar *
gtk_file_list_get_path (GtkFileList *file_list
);
Get the path of the files shown in filelist
const gchar *
gtk_file_list_get_filename (GtkFileList *file_list
);
Get the path of the files shown in filelist
gint
gtk_file_list_get_filetype (GtkFileList *file_list
);
Get the GtkFileListType of selected file in File List.
file_list |
the GtkFileList widget. GTK_FILE_LIST_FILE, GTK_FILE_LIST_HTML, GTK_FILE_LIST_TEXT, GTK_FILE_LIST_DOC, GTK_FILE_LIST_PDF, GTK_FILE_LIST_C, GTK_FILE_LIST_CPP, GTK_FILE_LIST_H, GTK_FILE_LIST_F, GTK_FILE_LIST_JAVA, GTK_FILE_LIST_EXEC, GTK_FILE_LIST_IMG, GTK_FILE_LIST_ARCH, GTK_FILE_LIST_PKG, GTK_FILE_LIST_DEB, GTK_FILE_LIST_RPM, GTK_FILE_LIST_CAT, GTK_FILE_LIST_SOUND, GTK_FILE_LIST_MOVIE, GTK_FILE_LIST_CORE) |
gint gtk_file_list_add_type (GtkFileList *file_list
,const gchar **pixmap_data
);
Add a new file type in a GtkFileList structure.
file_list |
the GtkFileList widget. |
|
pixmap_data |
Pointer to a string containing the XPM data.(last argument of |
gint gtk_file_list_add_type_with_pixmap (GtkFileList *file_list
,GdkPixmap *pixmap
,GdkBitmap *mask
);
Add a new file type in a GtkFileList structure.
void gtk_file_list_add_type_filter (GtkFileList *file_list
,gint type
,const gchar *filter
);
Add a filter for specified file type in a GtkFileList structure.
struct GtkFileList;
The GtkFileList structure contains only private data. It should only be accessed through the functions described below.
struct GtkFileListItem { };
The GtkFileListItem structure contains only private data. It should only be accessed through the functions described below.