Commit a501773a14504782f382911079192fa05a8dc50e
1 parent
8629b749
Exists in
master
and in
4 other branches
Fixing "connect" action.
Showing
1 changed file
with
9 additions
and
4 deletions
Show diff stats
src/objects/actions/connect.c
| @@ -41,13 +41,18 @@ | @@ -41,13 +41,18 @@ | ||
| 41 | 41 | ||
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | + static const gchar * get_name(GAction G_GNUC_UNUSED(*action)) { | ||
| 45 | + return "connect"; | ||
| 46 | + } | ||
| 47 | + | ||
| 44 | GAction * pw3270_connect_action_new(void) { | 48 | GAction * pw3270_connect_action_new(void) { |
| 45 | 49 | ||
| 46 | - GAction * action = pw3270_action_new_from_lib3270(lib3270_action_get_by_name("reconnect")); | 50 | + GAction * object = pw3270_action_new_from_lib3270(lib3270_action_get_by_name("reconnect")); |
| 47 | 51 | ||
| 48 | - PW3270_ACTION(action)->activate = activate; | ||
| 49 | - pw3270_action_set_name(G_ACTION(action),"connect"); | 52 | + pw3270Action * action = PW3270_ACTION(object); |
| 53 | + action->activate = activate; | ||
| 54 | + action->get_name = get_name; | ||
| 50 | 55 | ||
| 51 | - return action; | 56 | + return object; |
| 52 | 57 | ||
| 53 | } | 58 | } |