Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Quiñones <manuq@laptop.org>2012-04-08 19:59:09 (GMT)
committer Manuel Quiñones <manuq@laptop.org>2012-04-08 19:59:09 (GMT)
commit2d00c0a37d71eed9497d984a06a7ba35eb0c6cc0 (patch)
treed2ad7e904fbbd15666041c838a792d7e4904828c
parentee869ead0b498e13494b1088d2fcc257e91cb741 (diff)
Brushes preview
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
-rw-r--r--brushes/blur_prev.pngbin0 -> 6971 bytes
-rw-r--r--brushes/brush_prev.pngbin0 -> 5594 bytes
-rw-r--r--brushes/charcoal_prev.pngbin0 -> 8417 bytes
-rw-r--r--brushes/modelling2_prev.pngbin0 -> 8746 bytes
-rw-r--r--brushes/pen_prev.pngbin0 -> 8554 bytes
-rw-r--r--toolbar.py13
6 files changed, 13 insertions, 0 deletions
diff --git a/brushes/blur_prev.png b/brushes/blur_prev.png
new file mode 100644
index 0000000..9fd4f31
--- /dev/null
+++ b/brushes/blur_prev.png
Binary files differ
diff --git a/brushes/brush_prev.png b/brushes/brush_prev.png
new file mode 100644
index 0000000..e81c052
--- /dev/null
+++ b/brushes/brush_prev.png
Binary files differ
diff --git a/brushes/charcoal_prev.png b/brushes/charcoal_prev.png
new file mode 100644
index 0000000..24a020f
--- /dev/null
+++ b/brushes/charcoal_prev.png
Binary files differ
diff --git a/brushes/modelling2_prev.png b/brushes/modelling2_prev.png
new file mode 100644
index 0000000..179c84d
--- /dev/null
+++ b/brushes/modelling2_prev.png
Binary files differ
diff --git a/brushes/pen_prev.png b/brushes/pen_prev.png
new file mode 100644
index 0000000..b87e248
--- /dev/null
+++ b/brushes/pen_prev.png
Binary files differ
diff --git a/toolbar.py b/toolbar.py
index e935ec3..d7188bb 100644
--- a/toolbar.py
+++ b/toolbar.py
@@ -61,6 +61,19 @@ class BrushesPalette(Palette):
brush_name)
table.attach(brush, col, col+1, row, row+1, gtk.FILL)
brush.show()
+
+ hbox = gtk.HBox()
+ brush.add(hbox)
+ hbox.show()
+
+ preview_filename = 'brushes/%s_prev.png' % brush_name
+ preview_pixbuf = gtk.gdk.pixbuf_new_from_file(preview_filename)
+
+ image = gtk.Image()
+ image.set_from_pixbuf(preview_pixbuf)
+ hbox.pack_start(image)
+ image.show()
+
return brush
row = 0