Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Fomin <fominde@gmail.com>2010-11-02 15:36:29 +0300
committerDenis Fomin <fominde@gmail.com>2010-11-02 15:36:29 +0300
commit045a74c7b4bb6e3a0a15c4bb8ad95c3a9699d56a (patch)
tree93686a24d733fe88aae9fb68b268c523b2484cc6 /plugins
parentc999acc9cbe43a112af2e78a2ef3da3acc5ea0fe (diff)
whiteboard plugin. Ability to save images
Diffstat (limited to 'plugins')
-rw-r--r--plugins/whiteboard/whiteboard_widget.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/whiteboard/whiteboard_widget.py b/plugins/whiteboard/whiteboard_widget.py
index 30b00dfd3..a3f756fa6 100644
--- a/plugins/whiteboard/whiteboard_widget.py
+++ b/plugins/whiteboard/whiteboard_widget.py
@@ -108,7 +108,7 @@ class Whiteboard(object):
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 @@ class SvgChooserDialog(FileChooserDialog):
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...'),