left align toggle buttons.

2004-06-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_interface):
	left align toggle buttons.
This commit is contained in:
Sven Neumann
2004-06-05 01:51:49 +00:00
committed by Sven Neumann
parent 3cc11e1b1a
commit ef2df33f9e
3 changed files with 35 additions and 10 deletions

View File

@ -1374,11 +1374,21 @@ script_fu_interface (SFScript *script)
}
if (widget)
gimp_table_attach_aligned (GTK_TABLE (table), 0, i,
label_text, 0.0, label_yalign,
widget, 2, leftalign);
g_free (label_text);
{
if (label_text)
{
gimp_table_attach_aligned (GTK_TABLE (table), 0, i,
label_text, 0.0, label_yalign,
widget, 2, leftalign);
g_free (label_text);
}
else
{
gtk_table_attach (GTK_TABLE (table), widget, 0, 3, i, i+1,
GTK_EXPAND | GTK_FILL, GTK_FILL, 0, 0);
gtk_widget_show (widget);
}
}
sf_interface->args_widgets[i] = widget;
}