summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ganv/Canvas.hpp58
-rw-r--r--ganv/Edge.hpp4
-rw-r--r--ganv/Item.hpp16
-rw-r--r--ganv/Module.hpp4
-rw-r--r--ganv/Node.hpp4
-rw-r--r--ganv/Port.hpp4
-rw-r--r--src/Canvas.cpp4
-rw-r--r--src/box.c40
-rw-r--r--src/circle.c12
-rw-r--r--src/edge.c48
-rw-r--r--src/node.c50
-rw-r--r--src/port.c8
-rw-r--r--src/text.c12
13 files changed, 132 insertions, 132 deletions
diff --git a/ganv/Canvas.hpp b/ganv/Canvas.hpp
index 8db1f66..d3b2281 100644
--- a/ganv/Canvas.hpp
+++ b/ganv/Canvas.hpp
@@ -56,63 +56,63 @@ public:
GanvItem* root() { return ganv_canvas_root(gobj()); }
- METHOD0(ganv_canvas, clear);
+ METHOD0(ganv_canvas, clear)
METHODRET0(ganv_canvas, gboolean, empty)
- METHOD2(ganv_canvas, resize, double, width, double, height);
- METHOD4(ganv_canvas, set_scroll_region, double, x1, double, y1, double, x2, double, y2);
- METHOD4(ganv_canvas, get_scroll_region, double*, x1, double*, y1, double*, x2, double*, y2);
- METHOD1(ganv_canvas, set_center_scroll_region, gboolean, c);
- METHODRET0(ganv_canvas, gboolean, get_center_scroll_region);
- METHOD2(ganv_canvas, scroll_to, int, x, int, y);
+ METHOD2(ganv_canvas, resize, double, width, double, height)
+ METHOD4(ganv_canvas, set_scroll_region, double, x1, double, y1, double, x2, double, y2)
+ METHOD4(ganv_canvas, get_scroll_region, double*, x1, double*, y1, double*, x2, double*, y2)
+ METHOD1(ganv_canvas, set_center_scroll_region, gboolean, c)
+ METHODRET0(ganv_canvas, gboolean, get_center_scroll_region)
+ METHOD2(ganv_canvas, scroll_to, int, x, int, y)
void get_scroll_offsets(int& cx, int& cy) const {
ganv_canvas_get_scroll_offsets(gobj(), &cx, &cy);
}
- METHOD1(ganv_canvas, w2c_affine, cairo_matrix_t*, matrix);
- METHOD4(ganv_canvas, w2c, double, wx, double, wy, int*, cx, int*, cy);
- METHOD4(ganv_canvas, w2c_d, double, wx, double, wy, double*, cx, double*, cy);
- METHOD4(ganv_canvas, c2w, int, cx, int, cy, double*, wx, double*, wy);
- METHOD4(ganv_canvas, window_to_world, double, winx, double, winy, double*, worldx, double*, worldy);
- METHOD4(ganv_canvas, world_to_window, double, worldx, double, worldy, double*, winx, double*, winy);
+ METHOD1(ganv_canvas, w2c_affine, cairo_matrix_t*, matrix)
+ METHOD4(ganv_canvas, w2c, double, wx, double, wy, int*, cx, int*, cy)
+ METHOD4(ganv_canvas, w2c_d, double, wx, double, wy, double*, cx, double*, cy)
+ METHOD4(ganv_canvas, c2w, int, cx, int, cy, double*, wx, double*, wy)
+ METHOD4(ganv_canvas, window_to_world, double, winx, double, winy, double*, worldx, double*, worldy)
+ METHOD4(ganv_canvas, world_to_window, double, worldx, double, worldy, double*, winx, double*, winy)
Item* get_item_at(double x, double y) const;
Edge* get_edge(Node* tail, Node* head) const;
void remove_edge_between(Node* tail, Node* head);
void remove_edge(Edge* edge);
- METHOD0(ganv_canvas, arrange);
- METHODRET2(ganv_canvas, int, export_image, const char*, filename, bool, draw_background);
- METHOD1(ganv_canvas, export_dot, const char*, filename);
- METHODRET0(ganv_canvas, gboolean, supports_sprung_layout);
- METHODRET1(ganv_canvas, gboolean, set_sprung_layout, gboolean, sprung_layout);
+ METHOD0(ganv_canvas, arrange)
+ METHODRET2(ganv_canvas, int, export_image, const char*, filename, bool, draw_background)
+ METHOD1(ganv_canvas, export_dot, const char*, filename)
+ METHODRET0(ganv_canvas, gboolean, supports_sprung_layout)
+ METHODRET1(ganv_canvas, gboolean, set_sprung_layout, gboolean, sprung_layout)
METHOD2(ganv_canvas, for_each_node, GanvNodeFunc, f, void*, data)
METHOD2(ganv_canvas, for_each_selected_node, GanvNodeFunc, f, void*, data)
METHOD2(ganv_canvas, for_each_edge, GanvEdgeFunc, f, void*, data)
METHOD3(ganv_canvas, for_each_edge_from,
const GanvNode*, tail,
GanvEdgeFunc, f,
- void*, data);
+ void*, data)
METHOD3(ganv_canvas, for_each_edge_to,
const GanvNode*, head,
GanvEdgeFunc, f,
- void*, data);
+ void*, data)
METHOD3(ganv_canvas, for_each_edge_on,
const GanvNode*, node,
GanvEdgeFunc, f,
- void*, data);
+ void*, data)
METHOD2(ganv_canvas, for_each_selected_edge, GanvEdgeFunc, f, void*, data)
- METHOD0(ganv_canvas, select_all);
- METHOD0(ganv_canvas, clear_selection);
- METHODRET0(ganv_canvas, double, get_zoom);
- METHOD1(ganv_canvas, set_zoom, double, pix_per_unit);
- METHOD0(ganv_canvas, zoom_full);
+ METHOD0(ganv_canvas, select_all)
+ METHOD0(ganv_canvas, clear_selection)
+ METHODRET0(ganv_canvas, double, get_zoom)
+ METHOD1(ganv_canvas, set_zoom, double, pix_per_unit)
+ METHOD0(ganv_canvas, zoom_full)
METHODRET0(ganv_canvas, double, get_default_font_size)
METHODRET0(ganv_canvas, double, get_font_size)
- METHOD1(ganv_canvas, set_font_size, double, points);
- METHOD0(ganv_canvas, get_move_cursor);
- METHOD2(ganv_canvas, move_contents_to, double, x, double, y);
+ METHOD1(ganv_canvas, set_font_size, double, points)
+ METHOD0(ganv_canvas, get_move_cursor)
+ METHOD2(ganv_canvas, move_contents_to, double, x, double, y)
RW_PROPERTY(gboolean, locked)
RW_PROPERTY(double, width)
diff --git a/ganv/Edge.hpp b/ganv/Edge.hpp
index a01de44..5c60711 100644
--- a/ganv/Edge.hpp
+++ b/ganv/Edge.hpp
@@ -74,8 +74,8 @@ public:
RW_PROPERTY(guint, color)
RW_PROPERTY(gdouble, handle_radius)
- METHODRETWRAP0(ganv_edge, Node*, get_tail);
- METHODRETWRAP0(ganv_edge, Node*, get_head);
+ METHODRETWRAP0(ganv_edge, Node*, get_tail)
+ METHODRETWRAP0(ganv_edge, Node*, get_head)
GanvEdge* gobj() { return (GanvEdge*)_gobj; }
const GanvEdge* gobj() const { return (GanvEdge*)_gobj; }
diff --git a/ganv/Item.hpp b/ganv/Item.hpp
index 680b991..1d090d3 100644
--- a/ganv/Item.hpp
+++ b/ganv/Item.hpp
@@ -54,14 +54,14 @@ public:
RW_PROPERTY(double, x)
RW_PROPERTY(double, y)
- METHOD0(ganv_item, raise);
- METHOD0(ganv_item, lower);
- METHOD2(ganv_item, move, double, dx, double, dy);
- METHOD0(ganv_item, show);
- METHOD0(ganv_item, hide);
- METHOD2(ganv_item, i2w, double*, x, double*, y);
- METHOD2(ganv_item, w2i, double*, x, double*, y);
- METHOD0(ganv_item, grab_focus);
+ METHOD0(ganv_item, raise)
+ METHOD0(ganv_item, lower)
+ METHOD2(ganv_item, move, double, dx, double, dy)
+ METHOD0(ganv_item, show)
+ METHOD0(ganv_item, hide)
+ METHOD2(ganv_item, i2w, double*, x, double*, y)
+ METHOD2(ganv_item, w2i, double*, x, double*, y)
+ METHOD0(ganv_item, grab_focus)
Canvas* canvas() const {
return Glib::wrap(ganv_item_get_canvas(_gobj));
diff --git a/ganv/Module.hpp b/ganv/Module.hpp
index 8ca4393..64efa12 100644
--- a/ganv/Module.hpp
+++ b/ganv/Module.hpp
@@ -112,9 +112,9 @@ public:
return Glib::wrap(ganv_module_get_port(gobj(), index));
}
- METHOD2(ganv_module, for_each_port, GanvPortFunc, f, void*, data);
+ METHOD2(ganv_module, for_each_port, GanvPortFunc, f, void*, data)
- METHODRET0(ganv_module, guint, num_ports);
+ METHODRET0(ganv_module, guint, num_ports)
RW_PROPERTY(gboolean, stacked)
diff --git a/ganv/Node.hpp b/ganv/Node.hpp
index 2fef74c..2dd9dbc 100644
--- a/ganv/Node.hpp
+++ b/ganv/Node.hpp
@@ -63,7 +63,7 @@ public:
RW_PROPERTY(gboolean, draggable)
RW_PROPERTY(gboolean, grabbed)
- RW_OBJECT_PROPERTY(Node*, partner);
+ RW_OBJECT_PROPERTY(Node*, partner)
GanvNode* gobj() { return GANV_NODE(_gobj); }
const GanvNode* gobj() const { return GANV_NODE(_gobj); }
@@ -71,7 +71,7 @@ public:
METHOD2(ganv_node, move, double, dx, double, dy)
METHOD2(ganv_node, move_to, double, x, double, y)
- METHOD0(ganv_node, disconnect);
+ METHOD0(ganv_node, disconnect)
sigc::signal<void, double, double>& signal_moved() {
return _signal_moved;
diff --git a/ganv/Port.hpp b/ganv/Port.hpp
index 94fb760..20a7e00 100644
--- a/ganv/Port.hpp
+++ b/ganv/Port.hpp
@@ -50,7 +50,7 @@ public:
METHODRET0(ganv_port, gboolean, is_input)
METHODRET0(ganv_port, gboolean, is_output)
- METHODRET0(ganv_port, double, get_natural_width);
+ METHODRET0(ganv_port, double, get_natural_width)
METHODRET0(ganv_port, float, get_control_value)
METHODRET0(ganv_port, float, get_control_min)
METHODRET0(ganv_port, float, get_control_max)
@@ -61,7 +61,7 @@ public:
METHOD1(ganv_port, set_control_value, float, value)
METHOD1(ganv_port, set_control_min, float, min)
METHOD1(ganv_port, set_control_max, float, max)
- METHOD1(ganv_port, set_value_label, const char*, str);
+ METHOD1(ganv_port, set_value_label, const char*, str)
sigc::signal<void, double> signal_value_changed;
diff --git a/src/Canvas.cpp b/src/Canvas.cpp
index 6a18cdc..73e32bc 100644
--- a/src/Canvas.cpp
+++ b/src/Canvas.cpp
@@ -1866,8 +1866,8 @@ ganv_canvas_get_property(GObject* object,
switch (prop_id) {
GET_CASE(WIDTH, double, canvas->impl->width)
- GET_CASE(HEIGHT, double, canvas->impl->height)
- GET_CASE(LOCKED, boolean, canvas->impl->locked);
+ GET_CASE(HEIGHT, double, canvas->impl->height)
+ GET_CASE(LOCKED, boolean, canvas->impl->locked)
case PROP_FOCUSED_ITEM:
g_value_set_object(value, GANV_CANVAS(object)->impl->focused_item);
break;
diff --git a/src/box.c b/src/box.c
index e7ecac8..3ecb99d 100644
--- a/src/box.c
+++ b/src/box.c
@@ -87,16 +87,16 @@ ganv_box_set_property(GObject* object,
GanvBoxCoords* coords = &impl->coords;
switch (prop_id) {
- SET_CASE(X1, double, coords->x1);
- SET_CASE(Y1, double, coords->y1);
- SET_CASE(X2, double, coords->x2);
- SET_CASE(Y2, double, coords->y2);
- SET_CASE(RADIUS_TL, double, impl->radius_tl);
- SET_CASE(RADIUS_TR, double, impl->radius_tr);
- SET_CASE(RADIUS_BR, double, impl->radius_br);
- SET_CASE(RADIUS_BL, double, impl->radius_bl);
- SET_CASE(STACKED, boolean, coords->stacked);
- SET_CASE(BEVELED, boolean, impl->beveled);
+ SET_CASE(X1, double, coords->x1)
+ SET_CASE(Y1, double, coords->y1)
+ SET_CASE(X2, double, coords->x2)
+ SET_CASE(Y2, double, coords->y2)
+ SET_CASE(RADIUS_TL, double, impl->radius_tl)
+ SET_CASE(RADIUS_TR, double, impl->radius_tr)
+ SET_CASE(RADIUS_BR, double, impl->radius_br)
+ SET_CASE(RADIUS_BL, double, impl->radius_bl)
+ SET_CASE(STACKED, boolean, coords->stacked)
+ SET_CASE(BEVELED, boolean, impl->beveled)
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
break;
@@ -117,16 +117,16 @@ ganv_box_get_property(GObject* object,
GanvBoxCoords* coords = &impl->coords;
switch (prop_id) {
- GET_CASE(X1, double, coords->x1);
- GET_CASE(X2, double, coords->x2);
- GET_CASE(Y1, double, coords->y1);
- GET_CASE(Y2, double, coords->y2);
- GET_CASE(RADIUS_TL, double, impl->radius_tl);
- GET_CASE(RADIUS_TR, double, impl->radius_tr);
- GET_CASE(RADIUS_BR, double, impl->radius_br);
- GET_CASE(RADIUS_BL, double, impl->radius_bl);
- GET_CASE(STACKED, boolean, impl->coords.stacked);
- GET_CASE(BEVELED, boolean, impl->beveled);
+ GET_CASE(X1, double, coords->x1)
+ GET_CASE(X2, double, coords->x2)
+ GET_CASE(Y1, double, coords->y1)
+ GET_CASE(Y2, double, coords->y2)
+ GET_CASE(RADIUS_TL, double, impl->radius_tl)
+ GET_CASE(RADIUS_TR, double, impl->radius_tr)
+ GET_CASE(RADIUS_BR, double, impl->radius_br)
+ GET_CASE(RADIUS_BL, double, impl->radius_bl)
+ GET_CASE(STACKED, boolean, impl->coords.stacked)
+ GET_CASE(BEVELED, boolean, impl->beveled)
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
break;
diff --git a/src/circle.c b/src/circle.c
index a69c207..4784c06 100644
--- a/src/circle.c
+++ b/src/circle.c
@@ -72,9 +72,9 @@ ganv_circle_set_property(GObject* object,
GanvCircle* circle = GANV_CIRCLE(object);
switch (prop_id) {
- SET_CASE(RADIUS, double, circle->impl->coords.radius);
- SET_CASE(RADIUS_EMS, double, circle->impl->coords.radius_ems);
- SET_CASE(FIT_LABEL, boolean, circle->impl->fit_label);
+ SET_CASE(RADIUS, double, circle->impl->coords.radius)
+ SET_CASE(RADIUS_EMS, double, circle->impl->coords.radius_ems)
+ SET_CASE(FIT_LABEL, boolean, circle->impl->fit_label)
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
break;
@@ -97,9 +97,9 @@ ganv_circle_get_property(GObject* object,
GanvCircle* circle = GANV_CIRCLE(object);
switch (prop_id) {
- GET_CASE(RADIUS, double, circle->impl->coords.radius);
- GET_CASE(RADIUS_EMS, double, circle->impl->coords.radius_ems);
- GET_CASE(FIT_LABEL, boolean, circle->impl->fit_label);
+ GET_CASE(RADIUS, double, circle->impl->coords.radius)
+ GET_CASE(RADIUS_EMS, double, circle->impl->coords.radius_ems)
+ GET_CASE(FIT_LABEL, boolean, circle->impl->fit_label)
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
break;
diff --git a/src/edge.c b/src/edge.c
index a22bc73..6ce6f6f 100644
--- a/src/edge.c
+++ b/src/edge.c
@@ -116,17 +116,17 @@ ganv_edge_set_property(GObject* object,
GanvEdgeCoords* coords = &impl->coords;
switch (prop_id) {
- SET_CASE(WIDTH, double, coords->width);
- SET_CASE(HANDLE_RADIUS, double, coords->handle_radius);
- SET_CASE(DASH_LENGTH, double, impl->dash_length);
- SET_CASE(DASH_OFFSET, double, impl->dash_offset);
- SET_CASE(COLOR, uint, impl->color);
- SET_CASE(CONSTRAINING, boolean, impl->coords.constraining);
- SET_CASE(CURVED, boolean, impl->coords.curved);
- SET_CASE(ARROWHEAD, boolean, impl->coords.arrowhead);
- SET_CASE(SELECTED, boolean, impl->selected);
- SET_CASE(HIGHLIGHTED, boolean, impl->highlighted);
- SET_CASE(GHOST, boolean, impl->ghost);
+ SET_CASE(WIDTH, double, coords->width)
+ SET_CASE(HANDLE_RADIUS, double, coords->handle_radius)
+ SET_CASE(DASH_LENGTH, double, impl->dash_length)
+ SET_CASE(DASH_OFFSET, double, impl->dash_offset)
+ SET_CASE(COLOR, uint, impl->color)
+ SET_CASE(CONSTRAINING, boolean, impl->coords.constraining)
+ SET_CASE(CURVED, boolean, impl->coords.curved)
+ SET_CASE(ARROWHEAD, boolean, impl->coords.arrowhead)
+ SET_CASE(SELECTED, boolean, impl->selected)
+ SET_CASE(HIGHLIGHTED, boolean, impl->highlighted)
+ SET_CASE(GHOST, boolean, impl->ghost)
case PROP_TAIL: {
const gobject tmp = g_value_get_object(value);
if (impl->tail != tmp) {
@@ -162,19 +162,19 @@ ganv_edge_get_property(GObject* object,
GanvEdgePrivate* impl = edge->impl;
switch (prop_id) {
- GET_CASE(TAIL, object, impl->tail);
- GET_CASE(HEAD, object, impl->head);
- GET_CASE(WIDTH, double, impl->coords.width);
- SET_CASE(HANDLE_RADIUS, double, impl->coords.handle_radius);
- GET_CASE(DASH_LENGTH, double, impl->dash_length);
- GET_CASE(DASH_OFFSET, double, impl->dash_offset);
- GET_CASE(COLOR, uint, impl->color);
- GET_CASE(CONSTRAINING, boolean, impl->coords.constraining);
- GET_CASE(CURVED, boolean, impl->coords.curved);
- GET_CASE(ARROWHEAD, boolean, impl->coords.arrowhead);
- GET_CASE(SELECTED, boolean, impl->selected);
- GET_CASE(HIGHLIGHTED, boolean, impl->highlighted);
- SET_CASE(GHOST, boolean, impl->ghost);
+ GET_CASE(TAIL, object, impl->tail)
+ GET_CASE(HEAD, object, impl->head)
+ GET_CASE(WIDTH, double, impl->coords.width)
+ SET_CASE(HANDLE_RADIUS, double, impl->coords.handle_radius)
+ GET_CASE(DASH_LENGTH, double, impl->dash_length)
+ GET_CASE(DASH_OFFSET, double, impl->dash_offset)
+ GET_CASE(COLOR, uint, impl->color)
+ GET_CASE(CONSTRAINING, boolean, impl->coords.constraining)
+ GET_CASE(CURVED, boolean, impl->coords.curved)
+ GET_CASE(ARROWHEAD, boolean, impl->coords.arrowhead)
+ GET_CASE(SELECTED, boolean, impl->selected)
+ GET_CASE(HIGHLIGHTED, boolean, impl->highlighted)
+ SET_CASE(GHOST, boolean, impl->ghost)
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
break;
diff --git a/src/node.c b/src/node.c
index 4955f36..6857dd2 100644
--- a/src/node.c
+++ b/src/node.c
@@ -154,17 +154,17 @@ ganv_node_set_property(GObject* object,
GanvNodePrivate* impl = node->impl;
switch (prop_id) {
- SET_CASE(DASH_LENGTH, double, impl->dash_length);
- SET_CASE(DASH_OFFSET, double, impl->dash_offset);
- SET_CASE(BORDER_WIDTH, double, impl->border_width);
- SET_CASE(FILL_COLOR, uint, impl->fill_color);
- SET_CASE(BORDER_COLOR, uint, impl->border_color);
- SET_CASE(CAN_TAIL, boolean, impl->can_tail);
- SET_CASE(CAN_HEAD, boolean, impl->can_head);
- SET_CASE(IS_SOURCE, boolean, impl->is_source);
- SET_CASE(HIGHLIGHTED, boolean, impl->highlighted);
- SET_CASE(DRAGGABLE, boolean, impl->draggable);
- SET_CASE(GRABBED, boolean, impl->grabbed);
+ SET_CASE(DASH_LENGTH, double, impl->dash_length)
+ SET_CASE(DASH_OFFSET, double, impl->dash_offset)
+ SET_CASE(BORDER_WIDTH, double, impl->border_width)
+ SET_CASE(FILL_COLOR, uint, impl->fill_color)
+ SET_CASE(BORDER_COLOR, uint, impl->border_color)
+ SET_CASE(CAN_TAIL, boolean, impl->can_tail)
+ SET_CASE(CAN_HEAD, boolean, impl->can_head)
+ SET_CASE(IS_SOURCE, boolean, impl->is_source)
+ SET_CASE(HIGHLIGHTED, boolean, impl->highlighted)
+ SET_CASE(DRAGGABLE, boolean, impl->draggable)
+ SET_CASE(GRABBED, boolean, impl->grabbed)
case PROP_PARTNER:
impl->partner = (GanvNode*)g_value_get_object(value);
break;
@@ -216,20 +216,20 @@ ganv_node_get_property(GObject* object,
GanvNodePrivate* impl = node->impl;
switch (prop_id) {
- GET_CASE(PARTNER, object, impl->partner);
- GET_CASE(LABEL, string, impl->label ? impl->label->impl->text : NULL);
- GET_CASE(DASH_LENGTH, double, impl->dash_length);
- GET_CASE(DASH_OFFSET, double, impl->dash_offset);
- GET_CASE(BORDER_WIDTH, double, impl->border_width);
- GET_CASE(FILL_COLOR, uint, impl->fill_color);
- GET_CASE(BORDER_COLOR, uint, impl->border_color);
- GET_CASE(CAN_TAIL, boolean, impl->can_tail);
- GET_CASE(CAN_HEAD, boolean, impl->can_head);
- GET_CASE(IS_SOURCE, boolean, impl->is_source);
- GET_CASE(SELECTED, boolean, impl->selected);
- GET_CASE(HIGHLIGHTED, boolean, impl->highlighted);
- GET_CASE(DRAGGABLE, boolean, impl->draggable);
- GET_CASE(GRABBED, boolean, impl->grabbed);
+ GET_CASE(PARTNER, object, impl->partner)
+ GET_CASE(LABEL, string, impl->label ? impl->label->impl->text : NULL)
+ GET_CASE(DASH_LENGTH, double, impl->dash_length)
+ GET_CASE(DASH_OFFSET, double, impl->dash_offset)
+ GET_CASE(BORDER_WIDTH, double, impl->border_width)
+ GET_CASE(FILL_COLOR, uint, impl->fill_color)
+ GET_CASE(BORDER_COLOR, uint, impl->border_color)
+ GET_CASE(CAN_TAIL, boolean, impl->can_tail)
+ GET_CASE(CAN_HEAD, boolean, impl->can_head)
+ GET_CASE(IS_SOURCE, boolean, impl->is_source)
+ GET_CASE(SELECTED, boolean, impl->selected)
+ GET_CASE(HIGHLIGHTED, boolean, impl->highlighted)
+ GET_CASE(DRAGGABLE, boolean, impl->draggable)
+ GET_CASE(GRABBED, boolean, impl->grabbed)
case PROP_CANVAS:
g_value_set_object(value, ganv_item_get_canvas(GANV_ITEM(object)));
break;
diff --git a/src/port.c b/src/port.c
index fa76f22..eca3e83 100644
--- a/src/port.c
+++ b/src/port.c
@@ -96,8 +96,8 @@ ganv_port_set_property(GObject* object,
GanvPort* port = GANV_PORT(object);
switch (prop_id) {
- SET_CASE(IS_INPUT, boolean, port->impl->is_input);
- SET_CASE(IS_CONTROLLABLE, boolean, port->impl->is_controllable);
+ SET_CASE(IS_INPUT, boolean, port->impl->is_input)
+ SET_CASE(IS_CONTROLLABLE, boolean, port->impl->is_controllable)
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
break;
@@ -116,8 +116,8 @@ ganv_port_get_property(GObject* object,
GanvPort* port = GANV_PORT(object);
switch (prop_id) {
- GET_CASE(IS_INPUT, boolean, port->impl->is_input);
- GET_CASE(IS_CONTROLLABLE, boolean, port->impl->is_controllable);
+ GET_CASE(IS_INPUT, boolean, port->impl->is_input)
+ GET_CASE(IS_CONTROLLABLE, boolean, port->impl->is_controllable)
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
break;
diff --git a/src/text.c b/src/text.c
index bbac187..d7ab3e0 100644
--- a/src/text.c
+++ b/src/text.c
@@ -188,12 +188,12 @@ ganv_text_get_property(GObject* object,
}
switch (prop_id) {
- GET_CASE(TEXT, string, impl->text);
- GET_CASE(X, double, impl->coords.x);
- GET_CASE(Y, double, impl->coords.y);
- GET_CASE(WIDTH, double, impl->coords.width);
- GET_CASE(HEIGHT, double, impl->coords.height);
- GET_CASE(COLOR, uint, impl->color);
+ GET_CASE(TEXT, string, impl->text)
+ GET_CASE(X, double, impl->coords.x)
+ GET_CASE(Y, double, impl->coords.y)
+ GET_CASE(WIDTH, double, impl->coords.width)
+ GET_CASE(HEIGHT, double, impl->coords.height)
+ GET_CASE(COLOR, uint, impl->color)
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
break;