Commit 6d9d4251c7ce67e34e9c9247d44b6603ee599525
1 parent
1039b621
Exists in
master
and in
1 other branch
Fixing print/save copy actions.
Showing
2 changed files
with
10 additions
and
4 deletions
Show diff stats
src/selection/selection.c
| ... | ... | @@ -69,9 +69,15 @@ gboolean v3270_has_copy(GtkWidget *widget) |
| 69 | 69 | |
| 70 | 70 | void v3270_emit_copy_state(GtkWidget *widget) |
| 71 | 71 | { |
| 72 | - g_signal_emit(widget,v3270_widget_signal[V3270_SIGNAL_CLIPBOARD], 0, GTK_V3270(widget)->selection.blocks != NULL); | |
| 72 | + gboolean has_copy = (GTK_V3270(widget)->selection.blocks != NULL); | |
| 73 | + | |
| 74 | + debug("%s(%s)",__FUNCTION__,has_copy ? "TRUE" : "FALSE"); | |
| 75 | + | |
| 76 | + g_signal_emit(widget,v3270_widget_signal[V3270_SIGNAL_CLIPBOARD], 0, has_copy); | |
| 73 | 77 | g_object_notify_by_pspec(G_OBJECT(widget), GTK_V3270_GET_CLASS(widget)->properties.has_copy); |
| 74 | - lib3270_action_group_notify(GTK_V3270(widget)->host,LIB3270_ACTION_GROUP_COPY); | |
| 78 | + | |
| 79 | + lib3270_set_has_copy(GTK_V3270(widget)->host, has_copy ? 1 : 0); | |
| 80 | + | |
| 75 | 81 | } |
| 76 | 82 | |
| 77 | 83 | /** | ... | ... |
src/terminal/actions/table.c
| ... | ... | @@ -235,7 +235,7 @@ |
| 235 | 235 | |
| 236 | 236 | { |
| 237 | 237 | .flags = LIB3270_CONTENT_COPY, |
| 238 | - .group = LIB3270_ACTION_GROUP_ONLINE, | |
| 238 | + .group = LIB3270_ACTION_GROUP_COPY, | |
| 239 | 239 | .name = "save-copy", |
| 240 | 240 | .label = N_("Save copy"), |
| 241 | 241 | .icon = "document-save-as", |
| ... | ... | @@ -281,7 +281,7 @@ |
| 281 | 281 | |
| 282 | 282 | { |
| 283 | 283 | .flags = LIB3270_CONTENT_COPY, |
| 284 | - .group = LIB3270_ACTION_GROUP_ONLINE, | |
| 284 | + .group = LIB3270_ACTION_GROUP_COPY, | |
| 285 | 285 | .name = "print-copy", |
| 286 | 286 | .icon = "document-print", |
| 287 | 287 | .label = N_("Print Copy"), | ... | ... |