summaryrefslogtreecommitdiff
path: root/gtk/gtkfilesystemmodel.h
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2004-01-17 04:34:49 +0000
committerFederico Mena Quintero <federico@src.gnome.org>2004-01-17 04:34:49 +0000
commit02cb4554711a97836ab3b3f10931c4a93a4fbc46 (patch)
treef52632cc79752b5be28633a4cfff0fceaf9643e2 /gtk/gtkfilesystemmodel.h
parent07d4d314b6e45daeb1bd22538aa7f057bcd37a65 (diff)
downloadgtk+-02cb4554711a97836ab3b3f10931c4a93a4fbc46.tar.gz
Added a has_editable field. (_gtk_file_system_model_add_editable): New
2004-01-16 Federico Mena Quintero <federico@ximian.com> * gtk/gtkfilesystemmodel.c (struct _GtkFileSystemModel): Added a has_editable field. (_gtk_file_system_model_add_editable): New function. (_gtk_file_system_model_remove_editable): New function. (gtk_file_system_model_get_value): Return appropriate values for the temporary editable row. (_gtk_file_system_model_get_info): Handle the editable row. (_gtk_file_system_model_get_path): Likewise. * gtk/gtkfilechooserdefault.c (shortcuts_append_bookmarks): Removed an unused variable. (toolbar_button_new): Optionally show the button. (up_button_clicked_cb): Renamed from up_button_cb(), fixed prototype. (toolbar_create): Add a "New Folder" button for Save mode. (error_building_filename_dialog): New helper function. (gtk_file_chooser_default_get_paths): Use error_building_filename_dialog(). (create_file_list): Connect to the "edited" signal of the text cell renderer. Store the name column and text renderer in the impl structure. (renderer_edited_cb): New callback. (gtk_file_chooser_default_set_property): Show/hide the "New folder" button when the save action changes. (COMPARE_DIRECTORIES): Allow the info values to be NULL. (COMPARE_DIRECTORIES): Duh, use the list_model, not the tree_model. (get_list_file_info): Likewise! (list_icon_data_func): Handle the path being NULL. (new_folder_button_clicked): New callback. (list_name_data_func): If we are on the editable row, set the text to "Type name of new folder". (list_selection_changed): Handle the editable row. (list_mtime_data_func): Likewise. * gtk/gtkfilesystemunix.c (gtk_file_system_unix_make_path): Return NULL, not FALSE. (gtk_file_system_unix_create_folder): Test the result of mkdir() correctly.
Diffstat (limited to 'gtk/gtkfilesystemmodel.h')
-rw-r--r--gtk/gtkfilesystemmodel.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtkfilesystemmodel.h b/gtk/gtkfilesystemmodel.h
index 759c1ab3c1..890849d5c8 100644
--- a/gtk/gtkfilesystemmodel.h
+++ b/gtk/gtkfilesystemmodel.h
@@ -69,12 +69,16 @@ typedef void (*GtkFileSystemModelPathFunc) (GtkFileSystemModel *model,
GtkTreePath *path,
GtkTreeIter *iter,
gpointer user_data);
-
+
gboolean _gtk_file_system_model_path_do (GtkFileSystemModel *model,
const GtkFilePath *path,
GtkFileSystemModelPathFunc func,
gpointer user_data);
+void _gtk_file_system_model_add_editable (GtkFileSystemModel *model,
+ GtkTreeIter *iter);
+void _gtk_file_system_model_remove_editable (GtkFileSystemModel *model);
+
G_END_DECLS
#endif /* __GTK_FILE_SYSTEM_MODEL_H__ */