[gnome-remote-desktop] rdp-fuse-clipboard: Rename clear_instant_droppable_clip_data_entry()



commit 3ce85f44e93e1e4e764809b68042861dbf661d5c
Author: Pascal Nowack <Pascal Nowack gmx de>
Date:   Fri Aug 6 08:10:55 2021 +0200

    rdp-fuse-clipboard: Rename clear_instant_droppable_clip_data_entry()
    
    In most cases, clear_instant_droppable_clip_data_entry() just clears
    one entry.
    That is true. However, the implementation does not stop after finding
    the first instant droppable clip data entry.
    
    So, rename this function to clear_instant_droppable_clip_data_entries.
    Also set the copyright year correctly, as the clipboard data locking
    implementation was done in 2021.

 src/grd-rdp-fuse-clipboard.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/grd-rdp-fuse-clipboard.c b/src/grd-rdp-fuse-clipboard.c
index 1d45820..680573f 100644
--- a/src/grd-rdp-fuse-clipboard.c
+++ b/src/grd-rdp-fuse-clipboard.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2020 Pascal Nowack
+ * Copyright (C) 2020-2021 Pascal Nowack
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -463,7 +463,7 @@ collect_instant_droppable_clip_data_entry (gpointer key,
 }
 
 static void
-clear_instant_droppable_clip_data_entry (GrdRdpFuseClipboard *rdp_fuse_clipboard)
+clear_instant_droppable_clip_data_entries (GrdRdpFuseClipboard *rdp_fuse_clipboard)
 {
   GList *droppable_clip_data_entries = NULL;
   GList *l;
@@ -514,7 +514,7 @@ grd_rdp_fuse_clipboard_lazily_clear_all_cdi_selections (GrdRdpFuseClipboard *rdp
 
   g_mutex_lock (&rdp_fuse_clipboard->selection_mutex);
   g_mutex_lock (&rdp_fuse_clipboard->filesystem_mutex);
-  clear_instant_droppable_clip_data_entry (rdp_fuse_clipboard);
+  clear_instant_droppable_clip_data_entries (rdp_fuse_clipboard);
 
   g_hash_table_foreach (rdp_fuse_clipboard->clip_data_table,
                         maybe_set_clip_data_entry_timeout,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]