changeset 7bcd899066fa in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=7bcd899066fa
description: whiteboard plugin. Ability to save images

diffstat:

 plugins/whiteboard/whiteboard_widget.py |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r e00935114542 -r 7bcd899066fa plugins/whiteboard/whiteboard_widget.py
--- a/plugins/whiteboard/whiteboard_widget.py   Mon Nov 01 21:40:03 2010 +0100
+++ b/plugins/whiteboard/whiteboard_widget.py   Tue Nov 02 15:36:29 2010 +0300
@@ -108,7 +108,7 @@
         self.image.clear_canvas()
 
     def on_export_button_clicked(self, widget):
-        self.image.export_svg(filename)
+        SvgChooserDialog(self.image.export_svg)
 
     def on_fg_color_button_color_set(self, widget):
         self.color = str(self.fg_color_select_button.get_color())
@@ -258,8 +258,8 @@
             path_to_clientcert_file = \
                 gtkgui_helpers.decode_filechooser_file_paths(
                 (path_to_clientcert_file,))[0]
-            if os.path.exists(path_to_clientcert_file):
-                callback(widget, path_to_clientcert_file)
+            widget.destroy()
+            callback(path_to_clientcert_file)
 
         FileChooserDialog.__init__(self,
             title_text=_('Save Image as...'),
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to