[pitivi] ui: Remove unused function to draw rounded rectangles in Cairo
- From: Mathieu Duponchelle <mathieudu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] ui: Remove unused function to draw rounded rectangles in Cairo
- Date: Tue, 4 Feb 2014 21:53:08 +0000 (UTC)
commit 10878048801651ab444f8dfaa2fbe7354f94739d
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Fri Jan 10 20:21:29 2014 +0100
ui: Remove unused function to draw rounded rectangles in Cairo
pitivi/utils/ui.py | 24 ------------------------
1 files changed, 0 insertions(+), 24 deletions(-)
---
diff --git a/pitivi/utils/ui.py b/pitivi/utils/ui.py
index 37cf3dd..0e79801 100644
--- a/pitivi/utils/ui.py
+++ b/pitivi/utils/ui.py
@@ -342,30 +342,6 @@ def beautify_ETA(length):
return ", ".join(parts)
-#--------------------- UI drawing helper -------------------------------------#
-# from http://cairographics.org/cookbook/roundedrectangles/
-def roundedrec(context, x, y, w, h, r=10):
- "Draw a rounded rectangle"
- # A****BQ
- # H C
- # * *
- # G D
- # F****E
-
- context.move_to(x + r, y) # Move to A
- context.line_to(x + w - r, y) # Straight line to B
-
- # Curve to C, Control points are both at Q
- context.curve_to(x + w, y, x + w, y, x + w, y + r)
- context.line_to(x + w, y + h - r) # Move to D
- context.curve_to(x + w, y + h, x + w, y + h, x + w - r, y + h) # Curve to E
- context.line_to(x + r, y + h) # Line to F
- context.curve_to(x, y + h, x, y + h, x, y + h - r) # Curve to G
- context.line_to(x, y + r) # Line to H
- context.curve_to(x, y, x, y, x + r, y) # Curve to A
- return
-
-
#--------------------- Gtk widget helpers ------------------------------------#
def model(columns, data):
ret = Gtk.ListStore(*columns)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]