Commit 5b6497ac authored by Victor Ananjevsky's avatar Victor Ananjevsky

don't make rows homogeneous when form has a text field

parent a2c78175
......@@ -816,7 +816,7 @@ form_create_widget (GtkWidget * dlg)
gtk_grid_set_row_spacing (GTK_GRID (tbl), 5);
gtk_grid_set_column_spacing (GTK_GRID (tbl), 5);
gtk_grid_set_row_homogeneous (GTK_GRID (tbl), TRUE);
gtk_grid_set_row_homogeneous (GTK_GRID (tbl), options.form_data.homogeneous);
if (options.form_data.scroll)
{
......
......@@ -891,6 +891,10 @@ add_field (const gchar * option_name, const gchar * value, gpointer data, GError
fld->type = YAD_FIELD_SIMPLE;
options.form_data.fields = g_slist_append (options.form_data.fields, fld);
/* disable homogeneous rows if form has text field */
if (fld->type == YAD_FIELD_TEXT)
options.form_data.homogeneous = FALSE;
g_strfreev (fstr);
return TRUE;
}
......@@ -1737,6 +1741,7 @@ yad_options_init (void)
options.form_data.cycle_read = FALSE;
options.form_data.align_buttons = FALSE;
options.form_data.changed_action = NULL;
options.form_data.homogeneous = TRUE;
#ifdef HAVE_HTML
/* Initialize html data */
......
......@@ -341,6 +341,7 @@ typedef struct {
gboolean cycle_read;
gboolean align_buttons;
gchar *changed_action;
gboolean homogeneous;
} YadFormData;
#ifdef HAVE_HTML
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment