[gnome-control-center] Make the font DPI spin button work again (bug #594342)



commit e4647c5a545571b993f24752890c207725f3b3c4
Author: Jens Granseuer <jensgr gmx net>
Date:   Mon Sep 7 23:17:01 2009 +0200

    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.

 capplets/appearance/appearance-font.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/capplets/appearance/appearance-font.c b/capplets/appearance/appearance-font.c
index f129773..a094d50 100644
--- a/capplets/appearance/appearance-font.c
+++ b/capplets/appearance/appearance-font.c
@@ -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",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]