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]> http://library.gnome.org/devel/gtk/2.8/GtkWidget.html#gtk-

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 (menu_

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

2008-03-02 Thread Ke Jin
O I see, maybe it is the way to embed a GTK one to a window whose XID is known. But my aim is to embed an X window to a GTK one. -邮件原件- 发件人: Kevin DeKorte [mailto:[EMAIL PROTECTED] 发送时间: 2008年3月2日 9:16 收件人: Ke Jin 抄送: 'Bin Chen'; gtk-app-devel-list@gnome.org 主题: Re: 答复: Please help: How

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 -邮

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

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

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 id