From 0c8284ca6a83312cd5794485519fc278eb4472aa Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Sat, 26 Nov 2005 08:14:35 +0000 Subject: GObject canvas changes git-svn-id: svn://localhost/trunk/ardour2@117 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/canvas-simplerect.c | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) (limited to 'gtk2_ardour/canvas-simplerect.c') diff --git a/gtk2_ardour/canvas-simplerect.c b/gtk2_ardour/canvas-simplerect.c index a4ded6fadc..92c05e7f76 100644 --- a/gtk2_ardour/canvas-simplerect.c +++ b/gtk2_ardour/canvas-simplerect.c @@ -126,7 +126,7 @@ gnome_canvas_simplerect_class_init (GnomeCanvasSimpleRectClass *class) _("outline pixels"), _("width in pixels of outline"), 0, - G_MAXINT, + G_MAXUINT, 0, G_PARAM_READWRITE)); @@ -137,7 +137,7 @@ gnome_canvas_simplerect_class_init (GnomeCanvasSimpleRectClass *class) _("outline what"), _("which boundaries to outline (mask)"), 0, - G_MAXINT, + G_MAXUINT, 0, G_PARAM_READWRITE)); @@ -163,23 +163,23 @@ gnome_canvas_simplerect_class_init (GnomeCanvasSimpleRectClass *class) g_object_class_install_property (object_class, PROP_OUTLINE_COLOR_RGBA, g_param_spec_uint ("outline_color_rgba", - _("outline color rgba"), - _("color of outline"), - 0, - G_MAXINT, - 0, - G_PARAM_READWRITE)); + _("outline color rgba"), + _("color of outline"), + 0, + G_MAXUINT, + 0, + G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_FILL_COLOR_RGBA, g_param_spec_uint ("fill_color_rgba", - _("fill color rgba"), - _("color of fill"), - 0, - G_MAXINT, - 0, - G_PARAM_READWRITE)); + _("fill color rgba"), + _("color of fill"), + 0, + G_MAXUINT, + 0, + G_PARAM_READWRITE)); item_class->update = gnome_canvas_simplerect_update; item_class->bounds = gnome_canvas_simplerect_bounds; @@ -299,14 +299,11 @@ gnome_canvas_simplerect_set_property (GObject *object, { GnomeCanvasSimpleRect *simplerect; - int update; - int bounds_changed; + int update = FALSE; + int bounds_changed = FALSE; simplerect = GNOME_CANVAS_SIMPLERECT (object); - update = FALSE; - bounds_changed = FALSE; - switch (prop_id) { case PROP_X1: if (simplerect->x1 != g_value_get_double (value)) { -- cgit v1.2.3