diff --git a/pw3270.cbp b/pw3270.cbp
index d48fb73..abb01a0 100644
--- a/pw3270.cbp
+++ b/pw3270.cbp
@@ -68,9 +68,6 @@
-
-
-
@@ -125,6 +122,9 @@
+
+
+
diff --git a/src/objects/actions/connect.c b/src/objects/actions/connect.c
deleted file mode 100644
index 265791f..0000000
--- a/src/objects/actions/connect.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270
- * (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a
- * aplicativos mainframe. Registro no INPI sob o nome G3270.
- *
- * Copyright (C) <2008>
- *
- * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob
- * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela
- * Free Software Foundation.
- *
- * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER
- * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO
- * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para
- * obter mais detalhes.
- *
- * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este
- * programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin
- * St, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Este programa está nomeado como - e possui - linhas de código.
- *
- * Contatos:
- *
- * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck)
- * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça)
- *
- */
-
- /**
- * @brief Implement PW3270 "connect" action.
- *
- */
-
- #include "private.h"
-
- static void activate(GAction G_GNUC_UNUSED(*action), GVariant G_GNUC_UNUSED(*parameter), GtkWidget *terminal) {
-
- debug("%s",__FUNCTION__);
- gtk_widget_activate(terminal);
-
- }
-
- GAction * pw3270_action_connect_new(void) {
-
- pw3270SimpleAction * action = pw3270_simple_action_new_from_lib3270(lib3270_action_get_by_name("reconnect"),"connect");
- action->parent.activate = activate;
- action->label = N_("Connect");
- action->tooltip = N_("Connect to host");
-
- return G_ACTION(action);
-
- }
diff --git a/src/objects/actions/private.h b/src/objects/actions/private.h
index 22c61fc..2b9a074 100644
--- a/src/objects/actions/private.h
+++ b/src/objects/actions/private.h
@@ -56,7 +56,5 @@
G_GNUC_INTERNAL void pw3270_action_notify_enabled(GAction *action);
G_GNUC_INTERNAL void pw3270_action_notify_state(GAction *object);
- // Internal actions
- G_GNUC_INTERNAL GAction * pw3270_action_connect_new(void);
#endif // PRIVATE_H_INCLUDED
diff --git a/src/objects/window/actions/close.c b/src/objects/window/actions/close.c
index 1f69df7..9ff9a19 100644
--- a/src/objects/window/actions/close.c
+++ b/src/objects/window/actions/close.c
@@ -27,6 +27,7 @@
*
*/
+ #include "../private.h"
#include
#include
#include
diff --git a/src/objects/window/actions/connect.c b/src/objects/window/actions/connect.c
new file mode 100644
index 0000000..d21dae5
--- /dev/null
+++ b/src/objects/window/actions/connect.c
@@ -0,0 +1,55 @@
+/*
+ * "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270
+ * (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a
+ * aplicativos mainframe. Registro no INPI sob o nome G3270.
+ *
+ * Copyright (C) <2008>
+ *
+ * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob
+ * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela
+ * Free Software Foundation.
+ *
+ * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER
+ * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO
+ * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para
+ * obter mais detalhes.
+ *
+ * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este
+ * programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin
+ * St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Este programa está nomeado como - e possui - linhas de código.
+ *
+ * Contatos:
+ *
+ * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck)
+ * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça)
+ *
+ */
+
+ /**
+ * @brief Implement PW3270 "connect" action.
+ *
+ */
+
+ #include
+ #include
+ #include "../private.h"
+
+ static void activate(GAction G_GNUC_UNUSED(*action), GVariant G_GNUC_UNUSED(*parameter), GtkWidget *terminal) {
+
+ debug("%s",__FUNCTION__);
+ gtk_widget_activate(terminal);
+
+ }
+
+ GAction * pw3270_action_connect_new(void) {
+
+ pw3270SimpleAction * action = pw3270_simple_action_new_from_lib3270(lib3270_action_get_by_name("reconnect"),"connect");
+ action->parent.activate = activate;
+ action->label = N_("Connect");
+ action->tooltip = N_("Connect to host");
+
+ return G_ACTION(action);
+
+ }
diff --git a/src/objects/window/private.h b/src/objects/window/private.h
index 9c258fe..5e380ab 100644
--- a/src/objects/window/private.h
+++ b/src/objects/window/private.h
@@ -78,6 +78,7 @@
G_GNUC_INTERNAL GAction * pw3270_set_color_action_new(void);
G_GNUC_INTERNAL GAction * pw3270_file_transfer_action_new(void);
G_GNUC_INTERNAL GAction * pw3270_action_window_close_new(void);
+ G_GNUC_INTERNAL GAction * pw3270_action_connect_new(void);
GAction * pw3270_action_session_properties_new(void);
--
libgit2 0.21.2