From fe9a39d8ebb8507f20170c186c7260b9e23dcff9 Mon Sep 17 00:00:00 2001 From: Marc Maurer Date: Tue, 06 Mar 2007 21:33:44 +0000 Subject: Insert image (no toolbar icon yet) --- (limited to 'toolbar.py') 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) -- cgit v0.9.1