Commit d53afd85f2eb86557f895f978a9724c62da49aa6
1 parent
27a4b57a
Exists in
master
and in
3 other branches
Removing print/save actions from the protocol library; it's better to
implement then on the gui application.
Showing
1 changed file
with
11 additions
and
2 deletions
Show diff stats
src/core/actions/table.c
| @@ -205,6 +205,9 @@ | @@ -205,6 +205,9 @@ | ||
| 205 | .activatable = lib3270_is_connected | 205 | .activatable = lib3270_is_connected |
| 206 | }, | 206 | }, |
| 207 | 207 | ||
| 208 | + /* | ||
| 209 | + | ||
| 210 | + No need here; this actions are better when implemented on the widget or main application. | ||
| 208 | // | 211 | // |
| 209 | // Save/load actions | 212 | // Save/load actions |
| 210 | // | 213 | // |
| @@ -227,7 +230,7 @@ | @@ -227,7 +230,7 @@ | ||
| 227 | .type = LIB3270_ACTION_TYPE_FILE, | 230 | .type = LIB3270_ACTION_TYPE_FILE, |
| 228 | 231 | ||
| 229 | .keys = NULL, | 232 | .keys = NULL, |
| 230 | - .icon = NULL, | 233 | + .icon = "document-save", |
| 231 | .label = NULL, | 234 | .label = NULL, |
| 232 | .summary = N_( "Save selected area to file" ), | 235 | .summary = N_( "Save selected area to file" ), |
| 233 | .activate = save_selected, | 236 | .activate = save_selected, |
| @@ -241,7 +244,7 @@ | @@ -241,7 +244,7 @@ | ||
| 241 | .type = LIB3270_ACTION_TYPE_FILE, | 244 | .type = LIB3270_ACTION_TYPE_FILE, |
| 242 | 245 | ||
| 243 | .keys = NULL, | 246 | .keys = NULL, |
| 244 | - .icon = NULL, | 247 | + .icon = "document-save", |
| 245 | .label = NULL, | 248 | .label = NULL, |
| 246 | .summary = NULL, | 249 | .summary = NULL, |
| 247 | .activate = save_copy, | 250 | .activate = save_copy, |
| @@ -249,6 +252,7 @@ | @@ -249,6 +252,7 @@ | ||
| 249 | .group = LIB3270_ACTION_GROUP_ONLINE, | 252 | .group = LIB3270_ACTION_GROUP_ONLINE, |
| 250 | .activatable = lib3270_is_connected | 253 | .activatable = lib3270_is_connected |
| 251 | }, | 254 | }, |
| 255 | + */ | ||
| 252 | 256 | ||
| 253 | { | 257 | { |
| 254 | .name = "paste-from-file", | 258 | .name = "paste-from-file", |
| @@ -634,6 +638,10 @@ | @@ -634,6 +638,10 @@ | ||
| 634 | // | 638 | // |
| 635 | // Misc actions | 639 | // Misc actions |
| 636 | // | 640 | // |
| 641 | + /* | ||
| 642 | + | ||
| 643 | + No need here; this actions are better when implemented on the widget or main application. | ||
| 644 | + | ||
| 637 | { | 645 | { |
| 638 | .name = "print", | 646 | .name = "print", |
| 639 | .type = LIB3270_ACTION_TYPE_PRINTER, | 647 | .type = LIB3270_ACTION_TYPE_PRINTER, |
| @@ -690,6 +698,7 @@ | @@ -690,6 +698,7 @@ | ||
| 690 | .group = LIB3270_ACTION_GROUP_COPY, | 698 | .group = LIB3270_ACTION_GROUP_COPY, |
| 691 | .activatable = lib3270_is_connected | 699 | .activatable = lib3270_is_connected |
| 692 | }, | 700 | }, |
| 701 | + */ | ||
| 693 | 702 | ||
| 694 | // | 703 | // |
| 695 | // Test actions | 704 | // Test actions |