From 16917beae5ddd8205dad56a320c10d99151fd17d Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Tue, 30 Jul 2019 18:44:48 -0300 Subject: [PATCH] Improving print settings dialog. --- src/pw3270/print.c | 13 +++++++++++++ 1 file changed, 13 insertions(+), 0 deletions(-) diff --git a/src/pw3270/print.c b/src/pw3270/print.c index 24a62bd..68592fc 100644 --- a/src/pw3270/print.c +++ b/src/pw3270/print.c @@ -920,6 +920,19 @@ void print_settings_action(GtkAction *action, GtkWidget *terminal) memset(&info,0,sizeof(info)); + gtk_window_set_deletable(GTK_WINDOW(dialog),FALSE); + + // https://developer.gnome.org/hig/stable/visual-layout.html.en + gtk_container_set_border_width( + GTK_CONTAINER(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), + 18 + ); + + gtk_box_set_spacing( + GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), + 18 + ); + widget = GTK_WIDGET(create_custom_widget(NULL,&info)); gtk_box_pack_start(GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dialog))),GTK_WIDGET(widget),TRUE,TRUE,2); -- libgit2 0.21.2