mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
copy xtext selection to all clipboards
This commit is contained in:
@@ -71,6 +71,7 @@
|
|||||||
#include "fe-gtk.h"
|
#include "fe-gtk.h"
|
||||||
#include "xtext.h"
|
#include "xtext.h"
|
||||||
#include "fkeys.h"
|
#include "fkeys.h"
|
||||||
|
#include "gtkutil.h"
|
||||||
|
|
||||||
#define charlen(str) g_utf8_skip[*(guchar *)(str)]
|
#define charlen(str) g_utf8_skip[*(guchar *)(str)]
|
||||||
|
|
||||||
@@ -2195,8 +2196,8 @@ gtk_xtext_set_clip_owner (GtkWidget * xtext, GdkEventButton * event)
|
|||||||
if (str)
|
if (str)
|
||||||
{
|
{
|
||||||
if (str[0])
|
if (str[0])
|
||||||
gtk_clipboard_set_text (gtk_widget_get_clipboard (xtext, GDK_SELECTION_CLIPBOARD),
|
gtkutil_copy_to_clipboard (xtext, NULL, str);
|
||||||
str, len);
|
|
||||||
free (str);
|
free (str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user