diff options
author | Chris Toshok <toshok@ximian.com> | 2002-11-19 08:32:34 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2002-11-19 08:32:34 +0800 |
commit | 36ef28a7595066e225a696a1da68a866eeb3c037 (patch) | |
tree | 9c694d2817967f5b9e232e5265945d8a5efe08b1 | |
parent | 64c16949b686b17d380c8e3cabf9fdf6ec58f40e (diff) | |
download | gsoc2013-evolution-36ef28a7595066e225a696a1da68a866eeb3c037.tar gsoc2013-evolution-36ef28a7595066e225a696a1da68a866eeb3c037.tar.gz gsoc2013-evolution-36ef28a7595066e225a696a1da68a866eeb3c037.tar.bz2 gsoc2013-evolution-36ef28a7595066e225a696a1da68a866eeb3c037.tar.lz gsoc2013-evolution-36ef28a7595066e225a696a1da68a866eeb3c037.tar.xz gsoc2013-evolution-36ef28a7595066e225a696a1da68a866eeb3c037.tar.zst gsoc2013-evolution-36ef28a7595066e225a696a1da68a866eeb3c037.zip |
column_width = double. (e_reflow_realize): no need to cast to double,
2002-11-18 Chris Toshok <toshok@ximian.com>
* 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
-rw-r--r-- | widgets/misc/e-reflow.c | 8 |
1 files changed, 4 insertions, 4 deletions
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] = |