Commit b97b5d0fd0b1dff701787a244b093bfe6d6146dc
1 parent
1ffa3063
Exists in
master
and in
1 other branch
Impressão passa a salvar/restaurar configuração do papel
Showing
1 changed file
with
8 additions
and
9 deletions
Show diff stats
selection.c
@@ -81,6 +81,14 @@ static void clipboard_get(GtkClipboard *clipboard, GtkSelectionData *selection, | @@ -81,6 +81,14 @@ static void clipboard_get(GtkClipboard *clipboard, GtkSelectionData *selection, | ||
81 | } | 81 | } |
82 | } | 82 | } |
83 | 83 | ||
84 | +/** | ||
85 | + * Get text at informed area. | ||
86 | + * | ||
87 | + * @param widget Widget. | ||
88 | + * @param offset Offset of the desired text. | ||
89 | + * @param len Number of characters to get. | ||
90 | + * | ||
91 | + */ | ||
84 | gchar * v3270_get_text(GtkWidget *widget, int offset, int len) | 92 | gchar * v3270_get_text(GtkWidget *widget, int offset, int len) |
85 | { | 93 | { |
86 | v3270 * terminal; | 94 | v3270 * terminal; |
@@ -139,7 +147,6 @@ static const char * update_selected_text(GtkWidget *widget, gboolean cut) | @@ -139,7 +147,6 @@ static const char * update_selected_text(GtkWidget *widget, gboolean cut) | ||
139 | { | 147 | { |
140 | int c; | 148 | int c; |
141 | gchar * ptr = ln[l]; | 149 | gchar * ptr = ln[l]; |
142 | -// GString * buffer; | ||
143 | 150 | ||
144 | for(c=0;c<width && *ptr;c++) | 151 | for(c=0;c<width && *ptr;c++) |
145 | { | 152 | { |
@@ -289,14 +296,6 @@ void v3270_copy_append(GtkWidget *widget) | @@ -289,14 +296,6 @@ void v3270_copy_append(GtkWidget *widget) | ||
289 | lib3270_free(str); | 296 | lib3270_free(str); |
290 | } | 297 | } |
291 | 298 | ||
292 | -/* | ||
293 | - text = g_convert(terminal->selection.text, -1, "UTF-8", lib3270_get_charset(terminal->host), NULL, NULL, NULL); | ||
294 | - gtk_clipboard_set_text(gtk_widget_get_clipboard(widget,GDK_SELECTION_CLIPBOARD),text,-1); | ||
295 | - g_free(text); | ||
296 | - | ||
297 | - g_signal_emit(widget,v3270_widget_signal[SIGNAL_CLIPBOARD], 0, TRUE); | ||
298 | -*/ | ||
299 | - | ||
300 | update_system_clipboard(widget); | 299 | update_system_clipboard(widget); |
301 | 300 | ||
302 | } | 301 | } |