GTK: Tweak spin button widths.

This commit is contained in:
Brandon Wright 2019-04-20 15:55:43 -05:00
parent 8ea9a32a61
commit 993ffed6a3
2 changed files with 6 additions and 0 deletions

View File

@ -231,6 +231,7 @@ bool gtk_shader_parameters_dialog(GtkWindow *parent)
else
{
GtkWidget *spin = gtk_spin_button_new_with_range(p->min, p->max, p->step);
gtk_entry_set_width_chars(GTK_ENTRY(spin), 5);
gtk_grid_attach(GTK_GRID(grid), spin, 1, i, 1, 1);
gtk_size_group_add_widget(sizegroup, spin);
int digits = gtk_spin_button_get_digits(GTK_SPIN_BUTTON(spin));

View File

@ -2397,6 +2397,7 @@
<property name="secondary_icon_sensitive">True</property>
<property name="adjustment">adjustment3</property>
<property name="snap_to_ticks">True</property>
<property name="width_chars">6</property>
<property name="numeric">True</property>
</object>
<packing>
@ -2524,6 +2525,7 @@
<property name="secondary_icon_sensitive">True</property>
<property name="adjustment">adjustment2</property>
<property name="snap_to_ticks">True</property>
<property name="width_chars">6</property>
<property name="numeric">True</property>
</object>
<packing>
@ -4229,6 +4231,7 @@
<property name="secondary_icon_sensitive">True</property>
<property name="adjustment">adjustment6</property>
<property name="snap_to_ticks">True</property>
<property name="width_chars">6</property>
<property name="numeric">True</property>
</object>
<packing>
@ -4300,6 +4303,7 @@
<property name="primary_icon_sensitive">True</property>
<property name="secondary_icon_sensitive">True</property>
<property name="digits">3</property>
<property name="width_chars">6</property>
<property name="adjustment">dynamic_rate_adjustment</property>
</object>
<packing>
@ -4807,6 +4811,7 @@
<property name="secondary_icon_sensitive">True</property>
<property name="adjustment">superfx_multiplier_adjustment</property>
<property name="snap_to_ticks">True</property>
<property name="width_chars">6</property>
<property name="numeric">True</property>
</object>
<packing>