Fix for issue #289, autocopy though no text selected
This commit is contained in:
parent
acc90d4e77
commit
1bb0f34084
|
@ -2165,6 +2165,7 @@ gtk_xtext_set_clip_owner (GtkWidget * xtext, GdkEventButton * event)
|
||||||
str = gtk_xtext_selection_get_text (GTK_XTEXT (xtext), &len);
|
str = gtk_xtext_selection_get_text (GTK_XTEXT (xtext), &len);
|
||||||
if (str)
|
if (str)
|
||||||
{
|
{
|
||||||
|
if (str[0])
|
||||||
gtk_clipboard_set_text (gtk_widget_get_clipboard (xtext, GDK_SELECTION_CLIPBOARD),
|
gtk_clipboard_set_text (gtk_widget_get_clipboard (xtext, GDK_SELECTION_CLIPBOARD),
|
||||||
str, len);
|
str, len);
|
||||||
free (str);
|
free (str);
|
||||||
|
|
Loading…
Reference in New Issue