After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 669684 - pygtk remote desktop XP didn't works.
pygtk remote desktop XP didn't works.
Status: RESOLVED DUPLICATE of bug 665013
Product: pygtk
Classification: Bindings
Component: general
2.24.x
Other Windows
: Normal minor
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2012-02-08 15:35 UTC by Xavier Manach
Modified: 2012-02-09 21:31 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Xavier Manach 2012-02-08 15:35:01 UTC
Hi.

  Plateform Description :
XP Pro SP2
python-2.7.2.msi
gtk2-runtime-2.24.8-2011-12-03-ash.exe
pygtk-all-in-one-2.24.1.win32-py2.7.msi
pywin32-216.win32-py2.7.exe
As client, I tried :
- rdesktop from linux
- remote desktop connect from Windows 7.

  Bug description : 
A simple pygtk program that's work in the XP pro system.
When I try it with an XP native remote desktop, It's crash.

Gimp (with gtk+) works in remote desktop, then I supose it's a pygtk problem.
my trick : I use now tigthvnc with XP, and don't have the problem with this one.


Sample code :

import gtk

class PyApp(gtk.Window):
    def __init__(self):
        super(PyApp, self).__init__()
        self.set_title("TEST PYGTK")
        self.set_size_request(100, 100)
        self.set_position(gtk.WIN_POS_CENTER)
        self.connect("destroy", gtk.main_quit)
        self.show()

PyApp()
gtk.main()

Error when python test.py with remote desktop :
     
    test.py:12: GtkWarning: gdk_win32_pixmap_new: depth = 16 not supported  self.show()
    test.py:12: GtkWarning: gdk_gc_new_with_values: assertion `drawable != NULL' failed
      self.show()
    test.py:12: GtkWarning: gdk_gc_set_colormap: assertion `GDK_IS_GC (gc)' failed
      self.show()
    test.py:12: GtkWarning: gdk_draw_rectangle: assertion `GDK_IS_GC (gc)' failed
      self.show()
    test.py:15: GtkWarning: gdk_win32_pixmap_new: depth = 16 not supported
      gtk.main()
    test.py:15: Warning: g_object_ref: assertion `G_IS_OBJECT (object)' failed
      gtk.main()
    test.py:15: GtkWarning: gdk_drawable_get_size: assertion `GDK_IS_DRAWABLE (drawable)' failed
      gtk.main()

Bye.
Comment 1 Dieter Verfaillie 2012-02-09 21:31:17 UTC
This was fixed in GTK+ 2.24.9, but I didn't find the time
to upload win32 binaries for that release. In the mean time,
2.24.10 got released and win32 binaries have been uploaded to
ftp.gnome.org/pub/GNOME/binaries/win32/gtk+/2.24/ yesterday.

A new version of the pygtk all-in-one installer has been
uploaded just moments ago to
ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.24/
which comes bundled with GTK+ 2.24.10.

Note: there should be no need for the GTK+ runtime from
http://sourceforge.net/projects/gtk-win/ when using the
pygtk all-in-one installer.

*** This bug has been marked as a duplicate of bug 665013 ***