@SavSanta commented on this pull request.
> @@ -455,6 +455,30 @@ static void
> on_close_documents_right_activate(GtkMenuItem *menuitem, GeanyDocume
}
+static void on_copy_filename_to_clipboard_activate(GtkMenuItem *menuitem,
GeanyDocument *doc)
+{
+ g_return_if_fail(doc->is_valid);
+
+ gtk_clipboard_set_text(gtk_clipboard_get(GDK_NONE),
g_path_get_basename(doc->real_path), -1);
Im not GTK C or C fluent but this would entail declaring a separate `gchar
var`, assigning the result of `g_path_get_basename()` to that var. Then
`g_free(var)`, correct?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2550#discussion_r456728560