Make the font DPI spin button work again (bug #594342)

Properly initialize the spin button adjustment so that the DPI
value can be changed using the arrows. This bug was caused
during the migration to GtkBuilder.
This commit is contained in:
Jens Granseuer 2009-09-07 23:17:01 +02:00
parent 6f0e76b1a7
commit e4647c5a54

View file

@ -830,6 +830,8 @@ cb_show_details (GtkWidget *button,
/* pick a sensible maximum dpi */
adjustment = gtk_spin_button_get_adjustment (GTK_SPIN_BUTTON (widget));
adjustment->upper = DPI_HIGH_REASONABLE_VALUE;
adjustment->lower = DPI_LOW_REASONABLE_VALUE;
adjustment->step_increment = 1;
dpi_load (data->client, GTK_SPIN_BUTTON (widget));
g_signal_connect (widget, "value_changed",