Search code examples
x11ubuntu-11.10sublimetextgdkpixmap

Gdk-WARNING **: /build/....../gdkdrawable-x11.c:952 drawable is not a pixmap or window


My OS is Ubuntu 11.10, I started Sublime Text 2 from the terminal, everytime when I operated it, this Gdk-warning will be shown on the terminal, it's very annoying. How to fix it?

$ subl . &
[1] 4294
$ 
(subl:4294): Gdk-WARNING **: /build/buildd/gtk+2.0-2.24.6/gdk/x11/gdkdrawable-x11.c:952 drawable is not a pixmap or window
(subl:4294): Gdk-WARNING **: /build/buildd/gtk+2.0-2.24.6/gdk/x11/gdkdrawable-x11.c:952 drawable is not a pixmap or window
(subl:4294): Gdk-WARNING **: /build/buildd/gtk+2.0-2.24.6/gdk/x11/gdkdrawable-x11.c:952 drawable is not a pixmap or window

Solution

  • To fix this, you have to look at the source code of the application, fix it and recompile it. Gdk is giving a warning, but it's probably because the application is misusing the library.

    Unfortunately it's a little common to see these errors on Gtk+ applications... Too bad some developers don't care about fixing them...

    Another solution is to launch the app redirecting it's stdout and/or stderr to somewhere else: subl . > /dev/null 2>&1 &