diff --git a/selection.c b/selection.c index 6028296..c79f4a0 100644 --- a/selection.c +++ b/selection.c @@ -81,6 +81,14 @@ static void clipboard_get(GtkClipboard *clipboard, GtkSelectionData *selection, } } +/** + * Get text at informed area. + * + * @param widget Widget. + * @param offset Offset of the desired text. + * @param len Number of characters to get. + * + */ gchar * v3270_get_text(GtkWidget *widget, int offset, int len) { v3270 * terminal; @@ -139,7 +147,6 @@ static const char * update_selected_text(GtkWidget *widget, gboolean cut) { int c; gchar * ptr = ln[l]; -// GString * buffer; for(c=0;cselection.text, -1, "UTF-8", lib3270_get_charset(terminal->host), NULL, NULL, NULL); - gtk_clipboard_set_text(gtk_widget_get_clipboard(widget,GDK_SELECTION_CLIPBOARD),text,-1); - g_free(text); - - g_signal_emit(widget,v3270_widget_signal[SIGNAL_CLIPBOARD], 0, TRUE); -*/ - update_system_clipboard(widget); } -- libgit2 0.21.2