aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk_main-window-meta-data-context-menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk_main-window-meta-data-context-menu.c')
-rw-r--r--src/fs/gnunet-fs-gtk_main-window-meta-data-context-menu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fs/gnunet-fs-gtk_main-window-meta-data-context-menu.c b/src/fs/gnunet-fs-gtk_main-window-meta-data-context-menu.c
index 308b2582..9777b892 100644
--- a/src/fs/gnunet-fs-gtk_main-window-meta-data-context-menu.c
+++ b/src/fs/gnunet-fs-gtk_main-window-meta-data-context-menu.c
@@ -39,7 +39,7 @@
39 * @param path unused 39 * @param path unused
40 * @param iter position in the model to access 40 * @param iter position in the model to access
41 * @param user_data 'GList**' where we should store the types and values found 41 * @param user_data 'GList**' where we should store the types and values found
42 */ 42 */
43static void 43static void
44copy_metadata_to_clipboard (GtkTreeModel * model, GtkTreePath * path, 44copy_metadata_to_clipboard (GtkTreeModel * model, GtkTreePath * path,
45 GtkTreeIter * iter, gpointer user_data) 45 GtkTreeIter * iter, gpointer user_data)
@@ -66,7 +66,7 @@ copy_metadata_to_clipboard (GtkTreeModel * model, GtkTreePath * path,
66 * @param user_data the GtkBuilder of the main window 66 * @param user_data the GtkBuilder of the main window
67 */ 67 */
68void 68void
69GNUNET_GTK_FS_metadata_copy_selection_activated (GtkMenuItem * menuitem, 69GNUNET_GTK_FS_metadata_copy_selection_activated (GtkMenuItem * menuitem,
70 gpointer user_data) 70 gpointer user_data)
71{ 71{
72 struct GNUNET_GTK_MainWindowContext *main_ctx = user_data; 72 struct GNUNET_GTK_MainWindowContext *main_ctx = user_data;
@@ -115,14 +115,14 @@ GNUNET_GTK_FS_metadata_copy_selection_activated (GtkMenuItem * menuitem,
115 p = g_stpcpy (p, ": "); 115 p = g_stpcpy (p, ": ");
116 p = g_stpcpy (p, (gchar *) value->data); 116 p = g_stpcpy (p, (gchar *) value->data);
117 if (NULL != value->next) 117 if (NULL != value->next)
118 p = g_stpcpy (p, "\n"); 118 p = g_stpcpy (p, "\n");
119 } 119 }
120 g_list_foreach (pairs, (GFunc) &g_free, NULL); 120 g_list_foreach (pairs, (GFunc) &g_free, NULL);
121 g_list_free (pairs); 121 g_list_free (pairs);
122 cb = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD); 122 cb = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD);
123 gtk_clipboard_set_text (cb, s, -1); 123 gtk_clipboard_set_text (cb, s, -1);
124 gtk_clipboard_store (cb); 124 gtk_clipboard_store (cb);
125 g_free (s); 125 g_free (s);
126} 126}
127 127
128 128