![]() |
![]() |
![]() |
GtkExtra Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
#include <gtkextra.h> GtkFileList; GtkFileListItem; GtkFileListType; GtkWidget* gtk_file_list_new (guint icon_width, gint mode, const gchar *path); void gtk_file_list_construct (GtkFileList *file_list, guint icon_width, gint mode, const gchar *path); void gtk_file_list_set_filter (GtkFileList *file_list, const gchar *filter); gboolean gtk_file_list_open_dir (GtkFileList *file_list, const gchar *dir_path); const gchar* gtk_file_list_get_path (GtkFileList *file_list); const gchar* gtk_file_list_get_filename (GtkFileList *file_list); gint gtk_file_list_get_filetype (GtkFileList *file_list); gint gtk_file_list_add_type (GtkFileList *file_list, const gchar **pixmap_data); gint gtk_file_list_add_type_with_pixmap (GtkFileList *file_list, GdkPixmap *pixmap, GdkBitmap *mask); void gtk_file_list_add_type_filter (GtkFileList *file_list, gint type, const gchar *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
typedef struct _GtkFileList GtkFileList;
The GtkFileList structure contains only private data. It should only be accessed through the functions described below.
typedef struct { } GtkFileListItem;
The GtkFileListItem structure contains only private data. It should only be accessed through the functions described below.
typedef struct { } GtkFileListType;
The GtkFileListType structure contains only private data. It should only be accessed through the functions described below.
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);
|
the width of the icon |
|
GTK_FILE_LIST_SORT_NAME , GTK_FILE_LIST_SORT_TYPE |
|
the path to the files to be be opened in GtkFileList widget. |
Returns : |
the newly-created 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.
|
GtkFileList widget |
|
the width of the icon |
|
GTK_FILE_LIST_SORT_NAME , GTK_FILE_LIST_SORT_TYPE |
|
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.
|
the GtkFileList widget. |
|
filter applied to files |
gboolean gtk_file_list_open_dir (GtkFileList *file_list, const gchar *dir_path);
Opens the content of specified directory in GtkFileList widget.
|
a GtkFileList widget |
|
path of directory to be opened in GtkFileList widget |
Returns : |
TRUE(succes) or FALSE(failure) |
const gchar* gtk_file_list_get_path (GtkFileList *file_list);
Get the path of the files shown in filelist
|
the GtkFileList widget. |
Returns : |
the path of files. |
const gchar* gtk_file_list_get_filename (GtkFileList *file_list);
Get the path of the files shown in filelist
|
the GtkFileList widget. |
Returns : |
the filename |
gint gtk_file_list_get_filetype (GtkFileList *file_list);
Get the GtkFileListType of selected file in 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) |
Returns : |
The GtkFileListType ( GTK_FILE_LIST_FOLDER, |
gint gtk_file_list_add_type (GtkFileList *file_list, const gchar **pixmap_data);
Add a new file type in a GtkFileList structure.
|
the GtkFileList widget. |
|
Pointer to a string containing the XPM data.(last argument of gdk_pixmap_create_from_xpm_d() ).
|
Returns : |
the identification number given to the added filetype |
gint gtk_file_list_add_type_with_pixmap (GtkFileList *file_list, GdkPixmap *pixmap, GdkBitmap *mask);
Add a new file type in a GtkFileList structure.
|
the GtkFileList widget. |
|
a GdkPixmap object. |
|
a GdkBitmap mask. |
Returns : |
the identification number given to the added filetype |
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.
|
the GtkFileList widget. |
|
file type. |
|
filter for specified type. |