[pygi] fix some typos and add a link to a patch which fixes a FIXME



commit c1c41576d053cc1cdd8366d8cd1e59fff1c3a9c6
Author: John (J5) Palmieri <johnp redhat com>
Date:   Mon Jun 7 17:19:30 2010 -0400

    fix some typos and add a link to a patch which fixes a FIXME

 demos/gtk-demo/demos/clipboard.py |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/demos/gtk-demo/demos/clipboard.py b/demos/gtk-demo/demos/clipboard.py
index 5276503..fb129cd 100644
--- a/demos/gtk-demo/demos/clipboard.py
+++ b/demos/gtk-demo/demos/clipboard.py
@@ -190,7 +190,7 @@ class ClipboardApp:
     def copy_image(self, item, data):
         # get the default clipboard
         atom = Gdk.atom_intern('CLIPBOARD', True)
-        clipboard = Gtk.clipboard_get(atom)
+        clipboard = Gtk.Clipboard.get(atom)
         pixbuf = self.get_image_pixbuf(data)
 
         clipboard.set_image(pixbuf)
@@ -198,7 +198,7 @@ class ClipboardApp:
     def paste_image(self, item, data):
         # get the default clipboard
         atom = Gdk.atom_intern('CLIPBOARD', True)
-        clipboard = Gtk.clipboard_get(atom)
+        clipboard = Gtk.Clipboard.get(atom)
         pixbuf = clipboard.wait_for_image()
 
         if pixbuf != None:
@@ -225,6 +225,9 @@ class ClipboardApp:
         #FIXME: This doesn't work as we pass a None as a function
         #       pointer.  PyGI doesn't correctly check for
         #       allow-none on callback parameters
+        #       Fix is waiting for approval -
+        #       https://bugzilla.gnome.org/show_bug.cgi?id=620906
+
         menu.popup(None, None, None, None, 3, event.button.time)
 
 def main():



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]