mirror of https://github.com/GNOME/gimp.git
Made the text options about two toolbox grid columns smaller. Addresses
2004-10-08 Michael Natterer <mitch@gimp.org> Made the text options about two toolbox grid columns smaller. Addresses bug #122862. * app/widgets/gimppropwidgets.c (gimp_prop_size_entry_new): use the number of digits of the property's max_val plus two as number of chars for the sizeentry'y spinbutton (instead of always 10 as before). * app/tools/gimptextoptions.c (gimp_text_options_gui): GtkEntry has a minimal width of 150 pixels (eek). Set a silly small minimal width instead (the entry expands to the available width anyway).
This commit is contained in:
parent
983e918d13
commit
57f9d32e56
14
ChangeLog
14
ChangeLog
|
@ -1,3 +1,17 @@
|
|||
2004-10-08 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
Made the text options about two toolbox grid columns smaller.
|
||||
Addresses bug #122862.
|
||||
|
||||
* app/widgets/gimppropwidgets.c (gimp_prop_size_entry_new): use
|
||||
the number of digits of the property's max_val plus two as number
|
||||
of chars for the sizeentry'y spinbutton (instead of always 10 as
|
||||
before).
|
||||
|
||||
* app/tools/gimptextoptions.c (gimp_text_options_gui): GtkEntry
|
||||
has a minimal width of 150 pixels (eek). Set a silly small minimal
|
||||
width instead (the entry expands to the available width anyway).
|
||||
|
||||
2004-10-08 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/file/file-utils.c: added lots of const qualifiers.
|
||||
|
|
|
@ -434,6 +434,10 @@ gimp_text_options_gui (GimpToolOptions *tool_options)
|
|||
entry = gimp_container_entry_new (GIMP_CONTEXT (options)->gimp->fonts,
|
||||
GIMP_CONTEXT (options),
|
||||
GIMP_VIEW_SIZE_SMALL, 1);
|
||||
/* set a silly smally size request on the entry to disable
|
||||
* GtkEntry's minimal width of 150 pixels.
|
||||
*/
|
||||
gtk_widget_set_size_request (entry, 10, -1);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE, TRUE, 0);
|
||||
gtk_widget_show (entry);
|
||||
|
||||
|
|
|
@ -1952,7 +1952,8 @@ gimp_prop_size_entry_new (GObject *config,
|
|||
}
|
||||
|
||||
sizeentry = gimp_size_entry_new (1, unit_value, unit_format,
|
||||
TRUE, FALSE, FALSE, 10,
|
||||
TRUE, FALSE, FALSE,
|
||||
ceil (log (upper) / log (10) + 2),
|
||||
update_policy);
|
||||
gtk_table_set_col_spacing (GTK_TABLE (sizeentry), 1, 4);
|
||||
|
||||
|
|
|
@ -1952,7 +1952,8 @@ gimp_prop_size_entry_new (GObject *config,
|
|||
}
|
||||
|
||||
sizeentry = gimp_size_entry_new (1, unit_value, unit_format,
|
||||
TRUE, FALSE, FALSE, 10,
|
||||
TRUE, FALSE, FALSE,
|
||||
ceil (log (upper) / log (10) + 2),
|
||||
update_policy);
|
||||
gtk_table_set_col_spacing (GTK_TABLE (sizeentry), 1, 4);
|
||||
|
||||
|
|
Loading…
Reference in New Issue