Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)