[gegl/soc-2012-editor: 7/36] Better behavior when dragging to place a new connection
- From: Isaac Wagner <isaacbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/soc-2012-editor: 7/36] Better behavior when dragging to place a new connection
- Date: Thu, 5 Jul 2012 21:56:48 +0000 (UTC)
commit 3e71bbb4ad4d74a5f2eb5ed7ed000e464216657d
Author: Isaac Wagner <isaacbw src gnome org>
Date: Wed Jun 6 00:42:10 2012 -0400
Better behavior when dragging to place a new connection
bin/editor/gegl-node-widget.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/bin/editor/gegl-node-widget.c b/bin/editor/gegl-node-widget.c
index 202f940..424afe8 100644
--- a/bin/editor/gegl-node-widget.c
+++ b/bin/editor/gegl-node-widget.c
@@ -308,7 +308,7 @@ draw_node(EditorNode* node, cairo_t *cr, GeglNodeWidget* editor)
(fx+tx)/2, ty,
tx, ty);
else
- cairo_curve_to(cr, fx+100, fy,
+ cairo_curve_to(cr, fx+100, fy,
tx-100, ty,
tx, ty);
cairo_stroke(cr);
@@ -323,14 +323,14 @@ draw_node(EditorNode* node, cairo_t *cr, GeglNodeWidget* editor)
gint tx = editor->px, ty = editor->py;
cairo_move_to(cr, fx, fy);
- if(tx - fx > 200)
+ //if(tx - fx > 200)
cairo_curve_to(cr, (fx+tx)/2, fy,
(fx+tx)/2, ty,
tx, ty);
- else
+ /* else
cairo_curve_to(cr, fx+100, fy,
tx-100, ty,
- tx, ty);
+ tx, ty);*/
cairo_stroke(cr);
}
@@ -485,6 +485,8 @@ gegl_node_widget_button_release(GtkWidget* widget, GdkEventButton* event)
editor->dragged_pad = NULL;
}
+ gtk_widget_queue_draw(widget);
+
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]