Commit 07454c04f6875f028e1d5f7eeb572d597ebf3703
1 parent
16717998
Exists in
master
and in
4 other branches
Fixing toolbar actions.
Showing
2 changed files
with
1 additions
and
63 deletions
Show diff stats
src/objects/window/actions/open.c
| @@ -1,37 +0,0 @@ | @@ -1,37 +0,0 @@ | ||
| 1 | -/* | ||
| 2 | - * "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 | ||
| 3 | - * (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a | ||
| 4 | - * aplicativos mainframe. Registro no INPI sob o nome G3270. | ||
| 5 | - * | ||
| 6 | - * Copyright (C) <2008> <Banco do Brasil S.A.> | ||
| 7 | - * | ||
| 8 | - * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob | ||
| 9 | - * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela | ||
| 10 | - * Free Software Foundation. | ||
| 11 | - * | ||
| 12 | - * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER | ||
| 13 | - * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO | ||
| 14 | - * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para | ||
| 15 | - * obter mais detalhes. | ||
| 16 | - * | ||
| 17 | - * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este | ||
| 18 | - * programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin | ||
| 19 | - * St, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 20 | - * | ||
| 21 | - * Este programa está nomeado como - e possui - linhas de código. | ||
| 22 | - * | ||
| 23 | - * Contatos: | ||
| 24 | - * | ||
| 25 | - * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | ||
| 26 | - * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) | ||
| 27 | - * | ||
| 28 | - */ | ||
| 29 | - | ||
| 30 | - #include "../private.h" | ||
| 31 | - | ||
| 32 | - void pw3270_window_open_activated(GSimpleAction G_GNUC_UNUSED(* action), GVariant G_GNUC_UNUSED(*parameter), gpointer application) { | ||
| 33 | - | ||
| 34 | - debug("%s",__FUNCTION__); | ||
| 35 | - | ||
| 36 | - } | ||
| 37 | - |
src/objects/window/window.c
| @@ -151,7 +151,7 @@ | @@ -151,7 +151,7 @@ | ||
| 151 | pw3270_set_color_action_new(), | 151 | pw3270_set_color_action_new(), |
| 152 | pw3270_action_session_properties_new(), | 152 | pw3270_action_session_properties_new(), |
| 153 | pw3270_file_transfer_action_new(), | 153 | pw3270_file_transfer_action_new(), |
| 154 | - pw3270_action_window_close_new() | 154 | + pw3270_action_window_close_new(), |
| 155 | }; | 155 | }; |
| 156 | 156 | ||
| 157 | for(ix = 0; ix < G_N_ELEMENTS(actions); ix++) { | 157 | for(ix = 0; ix < G_N_ELEMENTS(actions); ix++) { |
| @@ -161,31 +161,6 @@ | @@ -161,31 +161,6 @@ | ||
| 161 | 161 | ||
| 162 | } | 162 | } |
| 163 | 163 | ||
| 164 | - /* | ||
| 165 | - // | ||
| 166 | - // Setup Window actions. | ||
| 167 | - // | ||
| 168 | - static GActionEntry actions[] = { | ||
| 169 | - | ||
| 170 | - { | ||
| 171 | - .name = "open", | ||
| 172 | - .activate = pw3270_window_open_activated, | ||
| 173 | - }, | ||
| 174 | - | ||
| 175 | - { | ||
| 176 | - .name = "close", | ||
| 177 | - .activate = pw3270_window_close_activated, | ||
| 178 | - }, | ||
| 179 | - | ||
| 180 | - }; | ||
| 181 | - | ||
| 182 | - g_action_map_add_action_entries( | ||
| 183 | - G_ACTION_MAP(widget), | ||
| 184 | - actions, | ||
| 185 | - G_N_ELEMENTS(actions), | ||
| 186 | - widget | ||
| 187 | - ); | ||
| 188 | - */ | ||
| 189 | 164 | ||
| 190 | // | 165 | // |
| 191 | // Setup toolbar | 166 | // Setup toolbar |