Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/toolbar.py
diff options
context:
space:
mode:
authorMarc Maurer <uwog@uwog.net>2007-03-06 21:33:44 (GMT)
committer Marc Maurer <uwog@uwog.net>2007-03-06 21:33:44 (GMT)
commitfe9a39d8ebb8507f20170c186c7260b9e23dcff9 (patch)
tree0c46633603156753604cbced25266e7fbadb28cd /toolbar.py
parent5b444d614bba9267fe5af74ef7fd6135ecec9c32 (diff)
Insert image (no toolbar icon yet)
Diffstat (limited to 'toolbar.py')
-rw-r--r--toolbar.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/toolbar.py b/toolbar.py
index 4260ebb..1231f1f 100644
--- a/toolbar.py
+++ b/toolbar.py
@@ -70,6 +70,11 @@ class AbiToolbar(object):
self._abiword_canvas.connect("right-align", self._isRightAlign_cb)
toolbar.append(self._align_right)
+ # theme:stock-image does not exist yet; someone kick Eben please :)
+ self._image = IconButton(icon_name='theme:stock-image')
+ self._image_id = self._image.connect("activated", self._image_cb)
+ toolbar.append(self._image)
+
# reenable this after march 6th
# self._table = abiword.TableCreator()
# self._table.set_labels("Table", "Cancel")
@@ -146,5 +151,9 @@ class AbiToolbar(object):
print "isRightAlign",b
# self.setToggleButtonState(self._align_right,b,self._align_right_id)
+ def _image_cb(self, button):
+ print "fileInsertGraphic"
+ self._abiword_canvas.invoke_cmd("fileInsertGraphic", "", 0, 0)
+
# def _table_cb(self, abi, rows, cols):
# self._abiword_canvas.insert_table(rows,cols)