Commit 4133ae8b2787621b04eae9b48d16978239d6727b
1 parent
e4fad4b7
Exists in
master
and in
1 other branch
Adding notification on copy state changes.
Showing
2 changed files
with
4 additions
and
0 deletions
Show diff stats
src/selection/linux/copy.c
| ... | ... | @@ -117,6 +117,7 @@ void v3270_update_system_clipboard(GtkWidget *widget) |
| 117 | 117 | { |
| 118 | 118 | // No clipboard data, return. |
| 119 | 119 | g_signal_emit(widget,v3270_widget_signal[V3270_SIGNAL_CLIPBOARD], 0, FALSE); |
| 120 | + lib3270_action_group_notify(terminal->host,LIB3270_ACTION_GROUP_COPY); | |
| 120 | 121 | return; |
| 121 | 122 | } |
| 122 | 123 | |
| ... | ... | @@ -171,6 +172,7 @@ void v3270_update_system_clipboard(GtkWidget *widget) |
| 171 | 172 | gtk_target_list_unref(list); |
| 172 | 173 | |
| 173 | 174 | g_signal_emit(widget,v3270_widget_signal[V3270_SIGNAL_CLIPBOARD], 0, TRUE); |
| 175 | + lib3270_action_group_notify(terminal->host,LIB3270_ACTION_GROUP_COPY); | |
| 174 | 176 | |
| 175 | 177 | } |
| 176 | 178 | ... | ... |
src/selection/windows/copy.c
| ... | ... | @@ -117,6 +117,7 @@ void v3270_update_system_clipboard(GtkWidget *widget) |
| 117 | 117 | { |
| 118 | 118 | // No clipboard data, return. |
| 119 | 119 | g_signal_emit(widget,v3270_widget_signal[V3270_SIGNAL_CLIPBOARD], 0, FALSE); |
| 120 | + lib3270_action_group_notify(terminal->host,LIB3270_ACTION_GROUP_COPY); | |
| 120 | 121 | return; |
| 121 | 122 | } |
| 122 | 123 | |
| ... | ... | @@ -166,6 +167,7 @@ void v3270_update_system_clipboard(GtkWidget *widget) |
| 166 | 167 | gtk_target_list_unref(list); |
| 167 | 168 | |
| 168 | 169 | g_signal_emit(widget,v3270_widget_signal[V3270_SIGNAL_CLIPBOARD], 0, TRUE); |
| 170 | + lib3270_action_group_notify(terminal->host,LIB3270_ACTION_GROUP_COPY); | |
| 169 | 171 | |
| 170 | 172 | } |
| 171 | 173 | ... | ... |