Commit 17bb509e34cde931a4a66567c47c18c9737c573f

Authored by Perry Werneck
1 parent 904ef2b0

Using terminal simple action.

src/objects/window/actions/close.c
... ... @@ -52,17 +52,16 @@
52 52  
53 53 GAction * pw3270_action_window_close_new(void) {
54 54  
55   - pw3270SimpleAction * action = pw3270_simple_action_new();
  55 + V3270SimpleAction * action = v3270_simple_action_new();
56 56  
57 57 action->parent.activate = activate;
58   - action->parent.name = "close";
  58 + action->name = "close";
59 59 action->icon_name = "window-close";
60   - action->label = N_("Close window");
61   - action->tooltip = N_("Close the window");
  60 + action->label = _("Close window");
  61 + action->tooltip = _("Close the window");
62 62  
63 63 return G_ACTION(action);
64 64  
65   -
66 65 }
67 66  
68 67  
... ...
src/objects/window/actions/connect.c
... ... @@ -47,7 +47,7 @@
47 47  
48 48 pw3270SimpleAction * action = pw3270_simple_action_new_from_lib3270(lib3270_action_get_by_name("reconnect"),"connect");
49 49 action->parent.activate = activate;
50   - action->label = N_("Connect");
  50 + action->label = _("Connect");
51 51 action->tooltip = N_("Connect to host");
52 52  
53 53 return G_ACTION(action);
... ...
src/objects/window/actions/filetransfer.c
... ... @@ -36,14 +36,14 @@
36 36  
37 37 GAction * pw3270_file_transfer_action_new(void) {
38 38  
39   - pw3270SimpleAction * action = pw3270_simple_action_new();
  39 + V3270SimpleAction * action = v3270_simple_action_new();
40 40  
41 41 action->parent.activate = activate;
42 42 action->group.id = LIB3270_ACTION_GROUP_ONLINE;
43   - action->parent.name = "file.transfer";
  43 + action->name = "file.transfer";
44 44 action->icon_name = "drive-harddisk";
45   - action->label = N_("Send/Receive");
46   - action->tooltip = N_("Send/Receive files");
  45 + action->label = _("Send/Receive");
  46 + action->tooltip = _("Send/Receive files");
47 47  
48 48 return G_ACTION(action);
49 49  
... ...