Question about gdk_window_foreign_new.

2007-08-09 Thread Magicloud Magiclouds
Dear all, I am using Xfce4, and I want to draw something on xfdesktop4. So I got its gdk_window, and create a cairo context on it. GdkDrawable *window; cairo_t *cc; window = gdk_window_foreign_new (netk_window_get_xid (g_list_first (netk_screen_get_windows_stacked (netk_screen_get_de

Re: How to use GtkPrint

2007-08-09 Thread Alexander S.Kresin
Wednesday, August 08, 2007, 11:53:14 AM, Alexander S.Kresin <[EMAIL PROTECTED]> wrote: ASK> could someone give me a link to any description of GtkPrint usage ASK> (not the api reference), any code sample ? Doesn't anyone here use GtkPrint ? What I need to go ahead is a piece of code, which

Re: How to use GtkPrint

2007-08-09 Thread Emmanuele Bassi
On Thu, 2007-08-09 at 15:01 +0400, Alexander S.Kresin wrote: > Wednesday, August 08, 2007, 11:53:14 AM, Alexander S.Kresin <[EMAIL > PROTECTED]> wrote: > > ASK> could someone give me a link to any description of GtkPrint usage > ASK> (not the api reference), any code sample ? > > Doesn't any

gtk-demo

2007-08-09 Thread Dave Howorth
Emmanuele Bassi wrote: > gtk-demo includes working code for printing. > you should have a look at it. I just saw this and it was the first I'd heard of gtk-demo! So this is just to point it out to anybody else like me. It's probably installed on your system. I just had to type 'gtk-demo' for it t

gtk_accelerator_name & gtk_accelerator_parse not symmetrical

2007-08-09 Thread Eduardo M KALINOWSKI
In developing an application that allows users to define commands to be called on specific keypresses, I've noticed that accelerators involving the Shift key do not work. I've traced the problem until the functions gtk_accelerator_name & gtk_accelerator_parse, that I use in my program. The

retrieve user input in child widget embedding Ogre

2007-08-09 Thread Vincent Delannoy
Hi, I'm looking for a way to embed an Ogre3D visualisation in a GTK child widget while still being able to receive keyboard/mouse events in such a widget. The ogre-gtk example app from the Ogre wiki successfully displays Ogre in child widgets, but for some reason, events can't be received anym

Libglade resource consuming question.

2007-08-09 Thread Carlos Savoretti
Hi all! Several objects within a program has a Xml buffer taken from xmlDocDumpFormatMemory (), one for each of them. Only one of those objects will be displayed at a time. Question is: Is it saved a "lot a memory" if I just keep the xml buffer and use glade_xml_new_from_buffer () when the obje

Re: Libglade resource consuming question.

2007-08-09 Thread Jim George
On 8/9/07, Carlos Savoretti <[EMAIL PROTECTED]> wrote: > Hi all! > > > Several objects within a program has a Xml buffer taken from > xmlDocDumpFormatMemory (), one for each of them. Only one of > those objects will be displayed at a time. > > Question is: > Is it saved a "lot a memory" if I just k

Re: Libglade resource consuming question.

2007-08-09 Thread Tristan Van Berkom
On Thu, 2007-08-09 at 12:55 -0400, Carlos Savoretti wrote: > Hi all! [...] > Do I be clear ? (When doubt appears it's probably not...) > Shortly: GladeXml objects with a moderate amount of widgets are > very resource consuming ? or not compared against > xmlDocDumpFormatMemory () result ? You can