Commit 67f9f0418e7833463671826b28e920975ac98593
1 parent
61201f93
Exists in
master
and in
1 other branch
Ajustes para que as macros tratem seleção
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
macros.c
@@ -47,6 +47,12 @@ | @@ -47,6 +47,12 @@ | ||
47 | return 0; | 47 | return 0; |
48 | } | 48 | } |
49 | 49 | ||
50 | + static int v3270_macro_clearsel(GtkWidget *widget, int argc, const char **argv) | ||
51 | + { | ||
52 | + v3270_clear_clipboard(widget); | ||
53 | + return 0; | ||
54 | + } | ||
55 | + | ||
50 | static int run_macro(GtkWidget *widget, int argc, const char **argv) | 56 | static int run_macro(GtkWidget *widget, int argc, const char **argv) |
51 | { | 57 | { |
52 | #define V3270_MACRO( name ) { #name, v3270_macro_ ## name } | 58 | #define V3270_MACRO( name ) { #name, v3270_macro_ ## name } |
@@ -59,6 +65,7 @@ | @@ -59,6 +65,7 @@ | ||
59 | { | 65 | { |
60 | V3270_MACRO( copy ), | 66 | V3270_MACRO( copy ), |
61 | V3270_MACRO( append ), | 67 | V3270_MACRO( append ), |
68 | + V3270_MACRO( clearsel ), | ||
62 | }; | 69 | }; |
63 | 70 | ||
64 | int f; | 71 | int f; |