From: jucablues Date: Tue, 11 Dec 2007 23:26:43 +0000 (+0000) Subject: I have added beveled edges to the connections on the filter-effects X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=95146988807f095e8b9f4a0288ca8d1f5b67b980;p=inkscape.git I have added beveled edges to the connections on the filter-effects dialog --- diff --git a/src/ui/dialog/filter-effects-dialog.cpp b/src/ui/dialog/filter-effects-dialog.cpp index 98318455a..d1be155be 100644 --- a/src/ui/dialog/filter-effects-dialog.cpp +++ b/src/ui/dialog/filter-effects-dialog.cpp @@ -1477,9 +1477,11 @@ void FilterEffectsDialog::PrimitiveList::draw_connection(const Gtk::TreeIter& in const int row_index = find_index(res); const int x2 = rct.get_x() + fheight * (row_count - row_index) - fheight / 2; const int y2 = rct.get_y() + rct.get_height(); - - get_bin_window()->draw_line(gc, x1, y1, x2, y1); - get_bin_window()->draw_line(gc, x2, y1, x2, y2); + + // Draw a bevelled 'L'-shaped connection + get_bin_window()->draw_line(get_style()->get_black_gc(), x1, y1, x2-fheight/4, y1); + get_bin_window()->draw_line(get_style()->get_black_gc(), x2-fheight/4, y1, x2, y1-fheight/4); + get_bin_window()->draw_line(get_style()->get_black_gc(), x2, y1-fheight/4, x2, y2); } } }