diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/menu.cc | 4 | ||||
-rw-r--r-- | src/uicmd.cc | 10 | ||||
-rw-r--r-- | src/uicmd.hh | 4 |
3 files changed, 10 insertions, 8 deletions
diff --git a/src/menu.cc b/src/menu.cc index 0a33e0ce..cc2245bf 100644 --- a/src/menu.cc +++ b/src/menu.cc @@ -2,7 +2,7 @@ * File: menu.cc * * Copyright (C) 2005-2007 Jorge Arellano Cid <jcid@dillo.org> - * Copyright (C) 2024 Rodrigo Arias Mallo <rodarima@gmail.com> + * Copyright (C) 2024-2025 Rodrigo Arias Mallo <rodarima@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -89,7 +89,7 @@ static void Menu_copy_urlstr_cb(Fl_Widget*, void *user_data) { if (user_data) { DilloUrl *url = (DilloUrl *)user_data ; - a_UIcmd_copy_urlstr(popup_bw, URL_STR(url)); + a_UIcmd_copy_urlstr(popup_bw, URL_STR(url), 2); } } diff --git a/src/uicmd.cc b/src/uicmd.cc index 06333d0c..a2c21311 100644 --- a/src/uicmd.cc +++ b/src/uicmd.cc @@ -2,7 +2,7 @@ * File: uicmd.cc * * Copyright (C) 2005-2011 Jorge Arellano Cid <jcid@dillo.org> - * Copyright (C) 2024 Rodrigo Arias Mallo <rodarima@gmail.com> + * Copyright (C) 2024-2025 Rodrigo Arias Mallo <rodarima@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -1317,12 +1317,14 @@ void a_UIcmd_file_popup(void *vbw, void *v_wid) } /* - * Copy url string to paste buffer + * Copy url string to paste buffer. + * + * For destination use: 0=primary, 1=clipboard, 2=both */ -void a_UIcmd_copy_urlstr(BrowserWindow *bw, const char *urlstr) +void a_UIcmd_copy_urlstr(BrowserWindow *bw, const char *urlstr, int destination) { Layout *layout = (Layout*)bw->render_layout; - layout->copySelection(urlstr); + layout->copySelection(urlstr, destination); } /* diff --git a/src/uicmd.hh b/src/uicmd.hh index b69b50db..54b8750b 100644 --- a/src/uicmd.hh +++ b/src/uicmd.hh @@ -2,7 +2,7 @@ * File: uicmd.cc * * Copyright (C) 2005-2011 Jorge Arellano Cid <jcid@dillo.org> - * Copyright (C) 2024 Rodrigo Arias Mallo <rodarima@gmail.com> + * Copyright (C) 2024-2025 Rodrigo Arias Mallo <rodarima@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -67,7 +67,7 @@ void a_UIcmd_image_popup(void *vbw, const DilloUrl *url, bool_t loaded_img, void a_UIcmd_form_popup(void *vbw, const DilloUrl *url, void *vform, bool_t showing_hiddens); void a_UIcmd_file_popup(void *vbw, void *v_wid); -void a_UIcmd_copy_urlstr(BrowserWindow *bw, const char *urlstr); +void a_UIcmd_copy_urlstr(BrowserWindow *bw, const char *urlstr, int destination); void a_UIcmd_view_page_source(BrowserWindow *bw, const DilloUrl *url); void a_UIcmd_view_page_bugs(void *vbw); void a_UIcmd_bugmeter_popup(void *vbw); |