From 36ef28a7595066e225a696a1da68a866eeb3c037 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Tue, 19 Nov 2002 00:32:34 +0000 Subject: column_width = double. (e_reflow_realize): no need to cast to double, 2002-11-18 Chris Toshok * gal/widgets/e-reflow.c (e_reflow_set_property): column_width = double. (e_reflow_realize): no need to cast to double, column_width is already a double. svn path=/trunk/; revision=18833 --- widgets/misc/e-reflow.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'widgets/misc') diff --git a/widgets/misc/e-reflow.c b/widgets/misc/e-reflow.c index d92b2335d0..e70cd61d0b 100644 --- a/widgets/misc/e-reflow.c +++ b/widgets/misc/e-reflow.c @@ -609,11 +609,11 @@ e_reflow_set_property (GObject *object, guint prop_id, const GValue *value, GPar connect_model (reflow, (EReflowModel *) g_value_get_object (value)); break; case PROP_COLUMN_WIDTH: - if (reflow->column_width != g_value_get_int (value)) { + if (reflow->column_width != g_value_get_double (value)) { GtkAdjustment *adjustment = gtk_layout_get_hadjustment(GTK_LAYOUT(item->canvas)); double old_width = reflow->column_width; - reflow->column_width = g_value_get_int (value); + reflow->column_width = g_value_get_double (value); adjustment->step_increment = (reflow->column_width + E_REFLOW_FULL_GUTTER) / 2; adjustment->page_increment = adjustment->page_size - adjustment->step_increment; gtk_adjustment_changed(adjustment); @@ -712,7 +712,7 @@ e_reflow_realize (GnomeCanvasItem *item) for(i = 0; i < count; i++) { if (reflow->items[i]) gnome_canvas_item_set(reflow->items[i], - "width", (double) reflow->column_width, + "width", reflow->column_width, NULL); } @@ -1325,7 +1325,7 @@ e_reflow_class_init (EReflowClass *klass) g_param_spec_double ("column_width", _( "Column width" ), _( "Column width" ), - 0.0, G_MAXDOUBLE, 0.0, + 0.0, G_MAXDOUBLE, 150.0, G_PARAM_READWRITE)); signals [SELECTION_EVENT] = -- cgit v1.2.3