diff --git a/src/dialogs/font/chooser.c b/src/dialogs/font/chooser.c index 2e983b8..6f8372d 100644 --- a/src/dialogs/font/chooser.c +++ b/src/dialogs/font/chooser.c @@ -1,30 +1,20 @@ +/* SPDX-License-Identifier: LGPL-3.0-or-later */ + /* - * "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. + * Copyright (C) 2008 Banco do Brasil S.A. * - * Contatos: + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) - * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . */ /** diff --git a/src/terminal/actions/table.c b/src/terminal/actions/table.c index 0f9e2f8..a6a489f 100644 --- a/src/terminal/actions/table.c +++ b/src/terminal/actions/table.c @@ -31,6 +31,8 @@ static int fire_accelerators_dialog(GtkWidget *widget, const struct _v3270_action * action); static int fire_host_dialog(GtkWidget *widget, const struct _v3270_action * action); static int fire_color_dialog(GtkWidget *widget, const struct _v3270_action * action); + static int fire_clipboard_dialog(GtkWidget *widget, const struct _v3270_action * action); + static int fire_font_dialog(GtkWidget *widget, const struct _v3270_action * action); /*--[ Implement ]------------------------------------------------------------------------------------*/ @@ -345,6 +347,23 @@ .activate = fire_color_dialog }, + { + .group = LIB3270_ACTION_GROUP_NONE, + .name = "dialog-clipboard", + .label = N_("Selection settings"), + .summary = N_("Edit clipboard settings"), + .activate = fire_clipboard_dialog + }, + + { + .group = LIB3270_ACTION_GROUP_NONE, + .icon = "preferences-desktop-font", + .name = "dialog-font", + .label = N_("Font settings"), + .summary = N_("Select terminal font"), + .activate = fire_font_dialog + }, + // // Terminator // @@ -439,10 +458,38 @@ } static int fire_color_dialog(GtkWidget *widget, const struct _v3270_action G_GNUC_UNUSED(* action)) { - v3270_settings_popup_dialog( - v3270_color_settings_new(), - widget, - FALSE + gtk_widget_show_all( + v3270_settings_popup_dialog( + v3270_color_settings_new(), + widget, + FALSE + ) ); return 0; } + + static int fire_clipboard_dialog(GtkWidget *widget, const struct _v3270_action G_GNUC_UNUSED(* action)) { + gtk_widget_show_all( + v3270_settings_popup_dialog( + v3270_clipboard_settings_new(), + widget, + FALSE + ) + ); + return 0; + } + + static int fire_font_dialog(GtkWidget *widget, const struct _v3270_action G_GNUC_UNUSED(* action)) { + + GtkWidget * dialog = + v3270_settings_popup_dialog( + v3270_font_settings_new(), + widget, + TRUE + ); + + gtk_window_set_default_size(GTK_WINDOW(dialog),950,400); + gtk_widget_show_all(dialog); + + return 0; + } -- libgit2 0.21.2