Commit cad156878358fe0783d0af26f4efd076d3b171b4

Authored by Perry Werneck
1 parent 07a706ff
Exists in master and in 1 other branch develop

Updating layout based on windows theme.

src/dialogs/commondialog.c
... ... @@ -86,6 +86,11 @@ LIB3270_EXPORT GtkWidget * v3270_dialog_new(GtkWidget *widget, const gchar *titl
86 86 {
87 87 gtk_window_set_title(GTK_WINDOW(dialog), title);
88 88  
  89 + gtk_box_set_spacing(
  90 + GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dialog))),
  91 + 18
  92 + );
  93 +
89 94 gtk_dialog_add_buttons(
90 95 GTK_DIALOG (dialog),
91 96 _("_Cancel"), GTK_RESPONSE_CANCEL,
... ...
src/dialogs/hostselect.c
... ... @@ -119,7 +119,6 @@ static void V3270HostSelectWidget_init(V3270HostSelectWidget *widget)
119 119 int f;
120 120  
121 121 // https://developer.gnome.org/hig/stable/visual-layout.html.en
122   - gtk_container_set_border_width(GTK_CONTAINER(widget),18);
123 122 gtk_grid_set_row_spacing(GTK_GRID(widget),6);
124 123 gtk_grid_set_column_spacing(GTK_GRID(widget),12);
125 124  
... ... @@ -311,7 +310,7 @@ LIB3270_EXPORT void v3270_select_host(GtkWidget *widget)
311 310 }
312 311  
313 312 GtkWidget * dialog = v3270_host_select_new(widget);
314   - GtkWidget * win = v3270_dialog_new(widget, _("Configure host"), _("C_onnect"));
  313 + GtkWidget * win = v3270_dialog_new(widget, _("Setup host"), _("C_onnect"));
315 314  
316 315 gtk_window_set_default_size(GTK_WINDOW(win), 700, 150);
317 316  
... ...