2111
new_folder_done (GFile *new_folder, gpointer user_data)
2114
//rename_file (directory_view, file);
2115
printf ("rename file\n");
2119
action_new_folder_callback (GtkAction *action, gpointer data)
2121
FMDirectoryView *view;
2123
g_assert (FM_IS_DIRECTORY_VIEW (data));
2125
view = FM_DIRECTORY_VIEW (data);
2127
//data = new_folder_data_new (view);
2129
/*g_signal_connect_data (view,
2131
G_CALLBACK (track_newly_added_locations),
2133
(GClosureNotify)NULL,
2136
/* TODO usefull for desktop
2137
pos = context_menu_to_file_operation_position (directory_view);*/
2139
printf ("%s\n", G_STRFUNC);
2140
/*parent_uri = nautilus_view_get_backing_uri (directory_view);
2141
marlin_file_operations_new_folder (GTK_WIDGET (view),
2144
//new_folder_done, data);
2145
new_folder_done, NULL);
2147
g_free (parent_uri);*/
2151
action_properties_callback (GtkAction *action, gpointer data)
2155
FMDirectoryView *view;
2159
g_assert (FM_DIRECTORY_IS_VIEW (callback_data));
2161
view = FM_DIRECTORY_VIEW (callback_data);
2162
selection = nautilus_view_get_selection (view);
2163
if (g_list_length (selection) == 0) {
2164
if (view->details->directory_as_file != NULL) {
2165
files = g_list_append (NULL, nautilus_file_ref (view->details->directory_as_file));
2166
nautilus_properties_window_present (files, GTK_WIDGET (view));
2167
gof_file_list_free (files);
2170
nautilus_properties_window_present (selection, GTK_WIDGET (view));
2172
gof_file_list_free (selection);
2099
2177
//TODO complete this list
2100
2178
static const GtkActionEntry directory_view_entries[] = {
2101
2179
/* name, stock id */ { "Cut", GTK_STOCK_CUT,
2102
/* label, accelerator */ NULL, NULL,
2103
/* tooltip */ N_("Prepare the selected files to be moved with a Paste command"),
2104
G_CALLBACK (action_cut_files) },
2180
/* label, accelerator */ NULL, NULL,
2181
/* tooltip */ N_("Prepare the selected files to be moved with a Paste command"),
2182
G_CALLBACK (action_cut_files) },
2105
2183
/* name, stock id */ { "Copy", GTK_STOCK_COPY,
2106
/* label, accelerator */ NULL, NULL,
2107
/* tooltip */ N_("Prepare the selected files to be copied with a Paste command"),
2108
G_CALLBACK (action_copy_files) },
2184
/* label, accelerator */ NULL, NULL,
2185
/* tooltip */ N_("Prepare the selected files to be copied with a Paste command"),
2186
G_CALLBACK (action_copy_files) },
2109
2187
/* name, stock id */ { "Paste", GTK_STOCK_PASTE,
2110
/* label, accelerator */ NULL, NULL,
2111
/* tooltip */ N_("Move or copy files previously selected by a Cut or Copy command"),
2112
G_CALLBACK (action_paste_files) }
2188
/* label, accelerator */ NULL, NULL,
2189
/* tooltip */ N_("Move or copy files previously selected by a Cut or Copy command"),
2190
G_CALLBACK (action_paste_files) },
2191
/* name, stock id */ { "New Folder", "folder-new",
2192
/* label, accelerator */ N_("Create New _Folder"), "<control><shift>N",
2193
/* tooltip */ N_("Create a new empty folder inside this folder"),
2194
G_CALLBACK (action_new_folder_callback) },
2195
/* name, stock id */ { "Properties", GTK_STOCK_PROPERTIES,
2196
/* label, accelerator */ N_("_Properties"), "<alt>Return",
2197
/* tooltip */ N_("View or modify the properties of each selected item"),
2198
G_CALLBACK (action_properties_callback) }