Re: Wrapper for arbitrary Drawable

2006-09-20 Thread Alexander Larsson
On Wed, 2006-09-20 at 12:18 +0400, Kirill Kirichenko wrote: > Hi Alex, > > > Why do you have to access it through the same display though? The > > drawable is just an id for the pixmap, and its the same independent on > > what connection to the x server (==display) you use. > Simply because it doe

Re: Wrapper for arbitrary Drawable

2006-09-20 Thread Kirill Kirichenko
Hi Alex, > Why do you have to access it through the same display though? The > drawable is just an id for the pixmap, and its the same independent on > what connection to the x server (==display) you use. Simply because it doesn't work, it generates BadDrawable X error. Check out the code below:

Re: Wrapper for arbitrary Drawable

2006-09-19 Thread Alexander Larsson
On Tue, 2006-09-19 at 13:36 +0400, Kirill Kirichenko wrote: > > > I have an X Drawable (either Window or Pixmap, I can't predict) which > > > is created for another Display than gdk opens during initialization. > > > > > > I would like to create a GdkDrawable wrapper for the Drawable that I > > > w

Re: Wrapper for arbitrary Drawable

2006-09-19 Thread Kirill Kirichenko
> > I have an X Drawable (either Window or Pixmap, I can't predict) which > > is created for another Display than gdk opens during initialization. > > > > I would like to create a GdkDrawable wrapper for the Drawable that I > > would use with GtkStyle to draw parts of widgets. > > > > Any ideas, su

Re: Wrapper for arbitrary Drawable

2006-09-18 Thread Kalle Vahlman
2006/9/18, Kirill Kirichenko <[EMAIL PROTECTED]>: > Hi there ! > > I have an X Drawable (either Window or Pixmap, I can't predict) which > is created for another Display than gdk opens during initialization. > > I would like to create a GdkDrawable wrapper for the Drawable that I > would use with G

Wrapper for arbitrary Drawable

2006-09-18 Thread Kirill Kirichenko
Hi there ! I have an X Drawable (either Window or Pixmap, I can't predict) which is created for another Display than gdk opens during initialization. I would like to create a GdkDrawable wrapper for the Drawable that I would use with GtkStyle to draw parts of widgets. Any ideas, suggestions ? T