summaryrefslogtreecommitdiff
path: root/gtk2_ardour/canvas-simplerect.c
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2005-11-26 08:14:35 +0000
committerTim Mayberry <mojofunk@gmail.com>2005-11-26 08:14:35 +0000
commit0c8284ca6a83312cd5794485519fc278eb4472aa (patch)
treedce7f8a5ba607795795ef9ff89ac14670accdac6 /gtk2_ardour/canvas-simplerect.c
parente48a9b49d6a925ce6bedf03164ee49df5721ef42 (diff)
GObject canvas changes
git-svn-id: svn://localhost/trunk/ardour2@117 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/canvas-simplerect.c')
-rw-r--r--gtk2_ardour/canvas-simplerect.c35
1 files changed, 16 insertions, 19 deletions
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)) {