summaryrefslogtreecommitdiff
path: root/src/file-manager/fm-directory-view.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-27 17:34:17 +0200
committerraveit65 <[email protected]>2021-11-20 16:50:14 +0100
commit0a4384ca8c93b62bdf393cd1f3698bab1999fc6f (patch)
tree9c68212e8ba254df3dc80cd091b8fd3198a9b643 /src/file-manager/fm-directory-view.c
parentbdc5cf66eff8c52cf422cf7b0143ff3489bbb7b0 (diff)
downloadcaja-0a4384ca8c93b62bdf393cd1f3698bab1999fc6f.tar.bz2
caja-0a4384ca8c93b62bdf393cd1f3698bab1999fc6f.tar.xz
Use a blank line at most
Diffstat (limited to 'src/file-manager/fm-directory-view.c')
-rw-r--r--src/file-manager/fm-directory-view.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c
index 7431c963..8ba1050d 100644
--- a/src/file-manager/fm-directory-view.c
+++ b/src/file-manager/fm-directory-view.c
@@ -153,7 +153,6 @@ enum
PROP_WINDOW_SLOT
};
-
static guint signals[LAST_SIGNAL] = { 0 };
static GdkAtom copied_files_atom;
@@ -498,7 +497,6 @@ file_and_directory_list_to_files (GList *fad_list)
return g_list_reverse (res);
}
-
static GList *
file_and_directory_list_from_files (CajaDirectory *directory, GList *files)
{
@@ -523,7 +521,6 @@ file_and_directory_free (FileAndDirectory *fad)
g_free (fad);
}
-
static void
file_and_directory_list_free (GList *list)
{
@@ -557,9 +554,6 @@ file_and_directory_hash (gconstpointer v)
return GPOINTER_TO_UINT (fad->file) ^ GPOINTER_TO_UINT (fad->directory);
}
-
-
-
static ScriptLaunchParameters *
script_launch_parameters_new (CajaFile *file,
FMDirectoryView *directory_view)
@@ -807,7 +801,6 @@ action_open_close_parent_callback (GtkAction *action,
caja_file_list_free (selection);
}
-
static void
action_open_alternate_callback (GtkAction *action,
gpointer callback_data)
@@ -1148,7 +1141,6 @@ action_invert_selection_callback (GtkAction *action,
fm_directory_view_invert_selection (callback_data);
}
-
static void
pattern_select_response_cb (GtkWidget *dialog, int response, gpointer user_data)
{
@@ -1290,7 +1282,6 @@ action_reset_to_defaults_callback (GtkAction *action,
fm_directory_view_reset_to_defaults (callback_data);
}
-
static void
hidden_files_mode_changed (CajaWindow *window,
gpointer callback_data)
@@ -1346,7 +1337,6 @@ query_name_entry_changed_cb (GtkWidget *entry, GtkWidget *button)
gtk_widget_set_sensitive (button, sensitive);
}
-
static void
action_save_search_as_callback (GtkAction *action,
gpointer callback_data)
@@ -1460,7 +1450,6 @@ action_save_search_as_callback (GtkAction *action,
}
}
-
static void
action_empty_trash_callback (GtkAction *action,
gpointer callback_data)
@@ -1819,7 +1808,6 @@ remove_directory_from_directory_list (FMDirectoryView *view,
caja_directory_unref (directory);
}
-
static void
add_directory_to_scripts_directory_list (FMDirectoryView *view,
CajaDirectory *directory)
@@ -1980,7 +1968,6 @@ fm_directory_view_set_selection_locations (CajaView *caja_view,
}
}
-
void
fm_directory_view_init_view_iface (CajaViewIface *iface)
{
@@ -2593,7 +2580,6 @@ done_loading (FMDirectoryView *view,
view->details->loading = FALSE;
}
-
typedef struct {
GHashTable *debuting_files;
GList *added_files;
@@ -2723,7 +2709,6 @@ remove_not_really_moved_files (gpointer key,
return TRUE;
}
-
/* When this function is invoked, the file operation is over, but all
* the icons may not have been added to the directory view yet, so
* we can't select them yet.
@@ -3171,8 +3156,6 @@ queue_pending_files (FMDirectoryView *view,
}
}
-
-
*pending_list = g_list_concat (file_and_directory_list_from_files (directory, files),
*pending_list);
@@ -3545,7 +3528,6 @@ fm_directory_view_zoom_to_level (FMDirectoryView *view,
zoom_to_level, (view, zoom_level));
}
-
CajaZoomLevel
fm_directory_view_get_zoom_level (FMDirectoryView *view)
{
@@ -4013,7 +3995,6 @@ delayed_rename_file_hack_removed (RenameData *data)
g_free (data);
}
-
static void
rename_file (FMDirectoryView *view, CajaFile *new_file)
{
@@ -4074,7 +4055,6 @@ typedef struct {
GHashTable *added_locations;
} NewFolderData;
-
static void
track_newly_added_locations (FMDirectoryView *view, CajaFile *new_file,
CajaDirectory *directory, gpointer user_data)
@@ -4114,7 +4094,6 @@ new_folder_done (GFile *new_folder, gpointer user_data)
screen = gtk_widget_get_screen (GTK_WIDGET (directory_view));
g_snprintf (screen_string, sizeof (screen_string), "%d", gdk_x11_screen_get_screen_number (screen));
-
file = caja_file_get (new_folder);
caja_file_set_metadata
(file, CAJA_METADATA_KEY_SCREEN,
@@ -4144,7 +4123,6 @@ new_folder_done (GFile *new_folder, gpointer user_data)
g_free (data);
}
-
static NewFolderData *
new_folder_data_new (FMDirectoryView *directory_view)
{
@@ -4427,7 +4405,6 @@ escape_action_path (const char *action_path)
return g_string_free (s, FALSE);
}
-
static void
add_submenu (GtkUIManager *ui_manager,
GtkActionGroup *action_group,
@@ -4762,7 +4739,6 @@ reset_open_with_menu (FMDirectoryView *view, GList *selection)
add_x_content_apps (view, CAJA_FILE (selection->data), &applications);
}
-
num_applications = g_list_length (applications);
if (file_list_all_are_folders (selection)) {
@@ -4874,7 +4850,6 @@ typedef struct
GtkAction *action;
} ExtensionActionCallbackData;
-
static void
extension_action_callback_data_free (ExtensionActionCallbackData *data)
{
@@ -5351,7 +5326,6 @@ static void set_script_environment_variables(FMDirectoryView* view, GList* selec
g_setenv("CAJA_SCRIPT_CURRENT_URI", uri, TRUE);
g_setenv("NAUTILUS_SCRIPT_CURRENT_URI", uri, TRUE); // compatibilidad GNOME
-
g_free(uri);
geometry_string = eel_gtk_window_get_geometry_string(GTK_WINDOW (fm_directory_view_get_containing_window (view)));
@@ -5929,8 +5903,6 @@ update_directory_in_templates_menu (FMDirectoryView *view,
return any_templates;
}
-
-
static void
update_templates_menu (FMDirectoryView *view)
{
@@ -5991,7 +5963,6 @@ update_templates_menu (FMDirectoryView *view)
g_free (templates_directory_uri);
}
-
static void
action_open_scripts_folder_callback (GtkAction *action,
gpointer callback_data)
@@ -7820,7 +7791,6 @@ real_merge_menus (FMDirectoryView *view)
view->details->templates_invalid = TRUE;
}
-
static gboolean
can_paste_into_file (CajaFile *file)
{
@@ -7884,7 +7854,6 @@ clipboard_targets_received (GtkClipboard *clipboard,
}
}
-
selection = fm_directory_view_get_selection (view);
count = g_list_length (selection);
@@ -9144,7 +9113,6 @@ real_update_menus (FMDirectoryView *view)
}
gtk_action_set_sensitive (action, can_delete_files);
-
action = gtk_action_group_get_action (view->details->dir_action_group,
FM_ACTION_RESTORE_FROM_TRASH);
update_restore_from_trash_action (action, selection, FALSE);
@@ -9218,7 +9186,6 @@ real_update_menus (FMDirectoryView *view)
FM_ACTION_SAVE_SEARCH_AS);
gtk_action_set_visible (action, show_save_search_as);
-
action = gtk_action_group_get_action (view->details->dir_action_group,
FM_ACTION_SELECT_ALL);
gtk_action_set_sensitive (action, !fm_directory_view_is_empty (view));
@@ -9283,7 +9250,6 @@ real_update_menus (FMDirectoryView *view)
FM_ACTION_MOVE_TO_NEXT_PANE);
gtk_action_set_sensitive (action, can_delete_files && next_pane_is_writable);
-
action = gtk_action_group_get_action (view->details->dir_action_group,
FM_ACTION_COPY_TO_HOME);
gtk_action_set_sensitive (action, can_copy_files);
@@ -10263,7 +10229,6 @@ fm_directory_view_update_menus (FMDirectoryView *view)
return;
}
-
EEL_CALL_METHOD
(FM_DIRECTORY_VIEW_CLASS, view,
update_menus, (view));
@@ -10462,7 +10427,6 @@ revert_slashes (char *string)
}
}
-
static GdkDragAction
ask_link_action (FMDirectoryView *view)
{
@@ -11034,7 +10998,6 @@ fm_directory_view_set_property (GObject *object,
}
}
-
gboolean
fm_directory_view_handle_scroll_event (FMDirectoryView *directory_view,
GdkEventScroll *event)
@@ -11103,7 +11066,6 @@ fm_directory_view_scroll_event (GtkWidget *widget,
return GTK_WIDGET_CLASS (parent_class)->scroll_event (widget, event);
}
-
static void
fm_directory_view_parent_set (GtkWidget *widget,
GtkWidget *old_parent)