diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2012-10-17 13:21:23 (GMT) |
---|---|---|
committer | Manuel QuiƱones <manuq@laptop.org> | 2012-10-17 14:09:02 (GMT) |
commit | dd7f9521f55b2765e8a83d1ae30bb7e4478eccdf (patch) | |
tree | 3495b3dcb54cd701e3911e42f08e8b1efa0e3182 | |
parent | f5b58f403d118966f2ecf67f5d73de8325c8cbab (diff) |
Palettes: fix Copy Image functionality - SL #3455
Asking the right clipboard to Gdk, which is Gdk.SELECTION_CLIPBOARD .
This was fixed for the text copy functionality in commit c3b6dd91 but
images was missing.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Acked-by: Manuel QuiƱones <manuq@laptop.org>
-rw-r--r-- | palettes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/palettes.py b/palettes.py index e97fd4c..a01234d 100644 --- a/palettes.py +++ b/palettes.py @@ -291,7 +291,7 @@ class ImagePalette(Palette): # Copy it inside the clipboard image = Gtk.Image.new_from_file(temp_file.name) os.unlink(temp_file.name) - clipboard = Gtk.Clipboard() + clipboard = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD) clipboard.set_image(image.get_pixbuf()) def __download_activate_cb(self, menu_item): |