diff --git a/src/linux/gobject.c b/src/linux/gobject.c index bc299c7..1d62d33 100644 --- a/src/linux/gobject.c +++ b/src/linux/gobject.c @@ -76,6 +76,28 @@ GObject * ipc3270_new(GtkWidget *window, GtkWidget *terminal) { void ipc3270_set_session(GObject *object, H3270 *hSession, const char *name, GError **error) { + #define DECLARE_LIB3270_ACTION( name ) \ + g_string_append_printf(introspection, \ + " " \ + " ", #name); + + #define DECLARE_LIB3270_KEY_ACTION( name ) \ + g_string_append_printf(introspection, \ + " " \ + " ", #name); + + #define DECLARE_LIB3270_CURSOR_ACTION( name ) \ + g_string_append_printf(introspection, \ + " " \ + " ", #name); + + #define DECLARE_LIB3270_FKEY_ACTION( name ) \ + g_string_append_printf(introspection, \ + " " \ + " " \ + " ", # name); + + char id; int ix; @@ -147,6 +169,9 @@ void ipc3270_set_session(GObject *object, H3270 *hSession, const char *name, GEr " " ); + // Constrói métodos usando as macros + #include + // Inclui toggles for(ix = 0; ix < (int) LIB3270_TOGGLE_COUNT; ix++) { g_string_append_printf(introspection, " ", lib3270_get_toggle_name((LIB3270_TOGGLE) ix)); -- libgit2 0.21.2