mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
libgimp, libgimpwidgets: Let string widgets expand horizontally
This makes GimpProcedureDialog string argument widgets expand horizontally by default.
This commit is contained in:
parent
4290f3dc7b
commit
cb0f8a0282
2 changed files with 3 additions and 0 deletions
|
@ -788,6 +788,7 @@ gimp_procedure_dialog_get_widget (GimpProcedureDialog *dialog,
|
|||
gtk_text_view_set_bottom_margin (GTK_TEXT_VIEW (widget), 3);
|
||||
gtk_text_view_set_left_margin (GTK_TEXT_VIEW (widget), 3);
|
||||
gtk_text_view_set_right_margin (GTK_TEXT_VIEW (widget), 3);
|
||||
gtk_widget_set_hexpand (widget, TRUE);
|
||||
g_object_unref (buffer);
|
||||
}
|
||||
else if (widget_type == GTK_TYPE_ENTRY)
|
||||
|
|
|
@ -2242,6 +2242,7 @@ gimp_prop_entry_new (GObject *config,
|
|||
|
||||
gtk_editable_set_editable (GTK_EDITABLE (entry),
|
||||
param_spec->flags & G_PARAM_WRITABLE);
|
||||
gtk_widget_set_hexpand (entry, TRUE);
|
||||
|
||||
set_param_spec (G_OBJECT (entry), entry, param_spec);
|
||||
|
||||
|
@ -2361,6 +2362,7 @@ gimp_prop_label_entry_new (GObject *config,
|
|||
|
||||
gtk_editable_set_editable (GTK_EDITABLE (entry),
|
||||
param_spec->flags & G_PARAM_WRITABLE);
|
||||
gtk_widget_set_hexpand (entry, TRUE);
|
||||
|
||||
set_param_spec (G_OBJECT (label_entry), label_entry, param_spec);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue