fontchooser: set the minimum size of the spinner to 1
This commit is contained in:
@ -537,7 +537,7 @@ gtk_font_chooser_widget_init (GtkFontChooserWidget *fontchooser)
|
|||||||
|
|
||||||
/* Set the upper values of the spin/scale with G_MAXINT / PANGO_SCALE */
|
/* Set the upper values of the spin/scale with G_MAXINT / PANGO_SCALE */
|
||||||
gtk_spin_button_set_range (GTK_SPIN_BUTTON (priv->size_spin),
|
gtk_spin_button_set_range (GTK_SPIN_BUTTON (priv->size_spin),
|
||||||
0.0, (gdouble)(G_MAXINT / PANGO_SCALE));
|
1.0, (gdouble)(G_MAXINT / PANGO_SCALE));
|
||||||
gtk_adjustment_set_upper (gtk_range_get_adjustment (GTK_RANGE (priv->size_slider)),
|
gtk_adjustment_set_upper (gtk_range_get_adjustment (GTK_RANGE (priv->size_slider)),
|
||||||
(gdouble)(G_MAXINT / PANGO_SCALE));
|
(gdouble)(G_MAXINT / PANGO_SCALE));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user