Please help: How to embed a X window in a GTK window?

2008-03-02 Thread Ke Jin
Dear All, I am working on a project whose code was written in Xlib and now I need to develop a GUI for it. I want to use GTK so I wonder if I could embed the former xlib window into a GTK top-level window. I wrote a small test program as below but it doesn't work. Does anyone have any

Re: Please help: How to embed a X window in a GTK window?

2008-03-02 Thread Bin Chen
On 3/2/08, Ke Jin [EMAIL PROTECTED] wrote: Dear All, I am working on a project whose code was written in Xlib and now I need to develop a GUI for it. I want to use GTK so I wonder if I could embed the former xlib window into a GTK top-level window. I wrote a small test program as below but it

Re: Please help: How to embed a X window in a GTK window?

2008-03-02 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bin Chen wrote: On 3/2/08, Ke Jin [EMAIL PROTECTED] wrote: Dear All, I am working on a project whose code was written in Xlib and now I need to develop a GUI for it. I want to use GTK so I wonder if I could embed the former xlib window into a GTK

Re: 答复: Please help: How to embed a X w indow in a GTK window?

2008-03-02 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ke Jin wrote: Hi Kevin, I have looked into Gtkplug, but the problem is that Gtkplug has to be the toplevel window, which drives the question back to how to make a Gtkplug as a parent window of an X window. I don't quite get your code, is it

答复: Please help: How to embed a X wind ow in a GTK window?

2008-03-02 Thread Ke Jin
Hi Kevin, I have looked into Gtkplug, but the problem is that Gtkplug has to be the toplevel window, which drives the question back to how to make a Gtkplug as a parent window of an X window. I don't quite get your code, is it reparenting a gtk window to a gdk now? Thanks and Regards, Ke

short-cut accelerators

2008-03-02 Thread Carlos Pereira
Hi, Could someone show me how to create a shortcurt to a menuitem, using an accelerator group? on GTK 1.2* I used the code below. What is the equivalent in GTK 2.12? accel_group = gtk_accel_group_new (); gtk_accel_group_attach (accel_group, GTK_OBJECT (window)); gtk_widget_add_accelerator

Fwd: high light/selection color from GTK

2008-03-02 Thread Shixin Zeng
oops, not CCed the mailling list. -- Forwarded message -- From: Shixin Zeng [EMAIL PROTECTED] Date: Sun, Mar 2, 2008 at 8:13 PM Subject: Re: high light/selection color from GTK To: Steve Splonskowski [EMAIL PROTECTED]