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:
parent
6f0e76b1a7
commit
e4647c5a54
1 changed files with 2 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue