Skip to content

Commit

Permalink
add GTK2.24 gtkfilesystem.c, WIP
Browse files Browse the repository at this point in the history
move to GIO based upstream gtkfilesystem.c. Still WIP, volume/mount
management has to be implemented properly.

Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
  • Loading branch information
freemangordon committed May 11, 2017
1 parent a93e729 commit c8dedc6
Show file tree
Hide file tree
Showing 22 changed files with 2,597 additions and 5,183 deletions.
5 changes: 2 additions & 3 deletions hildon-fm/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ libhildonfm_la_SOURCES = \
gtkfilesystem/gtkfilechooserutils.c \
gtkfilesystem/gtkfilechooserutils.h \
gtkfilesystem/gtkfilesystem.c \
gtkfilesystem/gtkfilesystemmodel.c \
gtkfilesystem/gtkfilesystemmodel.h \
gtkfilesystem/gtkfilesystemunix.c \
gtkfilesystem/gtkfilesystemunix.h \
gtkfilesystem/gtkfilesystemgio.c \
gtkfilesystem/gtkfilesystemgio.h \
gtkfilesystem/gtkfilechooserprivate.h \
hildon-file-selection.c \
hildon-file-system-model.c \
Expand Down
4 changes: 2 additions & 2 deletions hildon-fm/gtkfilesystem/gtkfilechooserprivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ struct _GtkFileSystemModel
GtkFileSystem *file_system;
GtkFileInfoType types;
FileModelNode *roots;
GtkFileFolder *root_folder;
GtkFolder *root_folder;
GtkFilePath *root_path;

GtkFileSystemModelFilter filter_func;
Expand All @@ -134,7 +134,7 @@ struct _FileModelNode
FileModelNode *next;

GtkFileInfo *info;
GtkFileFolder *folder;
GtkFolder *folder;

FileModelNode *children;
FileModelNode *parent;
Expand Down
3 changes: 3 additions & 0 deletions hildon-fm/gtkfilesystem/gtkfilechooserutils.c
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ _gtk_file_chooser_install_properties (GObjectClass *klass)
g_object_class_override_property (klass,
GTK_FILE_CHOOSER_PROP_DO_OVERWRITE_CONFIRMATION,
"do-overwrite-confirmation");
g_object_class_override_property (klass,
GTK_FILE_CHOOSER_PROP_CREATE_FOLDERS,
"create-folders");
}

#ifdef MAEMO_CHANGES
Expand Down
3 changes: 2 additions & 1 deletion hildon-fm/gtkfilesystem/gtkfilechooserutils.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ typedef enum {
GTK_FILE_CHOOSER_PROP_SELECT_MULTIPLE,
GTK_FILE_CHOOSER_PROP_SHOW_HIDDEN,
GTK_FILE_CHOOSER_PROP_DO_OVERWRITE_CONFIRMATION,
GTK_FILE_CHOOSER_PROP_LAST = GTK_FILE_CHOOSER_PROP_DO_OVERWRITE_CONFIRMATION
GTK_FILE_CHOOSER_PROP_CREATE_FOLDERS,
GTK_FILE_CHOOSER_PROP_LAST = GTK_FILE_CHOOSER_PROP_CREATE_FOLDERS
} GtkFileChooserProp;

void _gtk_file_chooser_install_properties (GObjectClass *klass);
Expand Down
Loading

0 comments on commit c8dedc6

Please sign in to comment.