答复: A question about GTK Scale

2008-04-16 Thread Ke Jin
(0.0, 0.0, 1001, 0.1, 1.0, 1.0); slider = gtk_vscale_new (GTK_ADJUSTMENT (adj1)); it did work. Any idea why? -邮件原件- 发件人: Christopher Backhouse [mailto:[EMAIL PROTECTED] 发送时间: 2008年4月16日 9:40 收件人: Ke Jin 抄送: gtk-app-devel-list@gnome.org 主题: Re: A question about GTK Scale Perhaps it ta

A question about GTK Scale

2008-04-16 Thread Ke Jin
Dear All, I have a VScale in my interface and I created button named "Play" that once the button is clicked, the scale will move automatically. Below is the function connected to the button. And it performed strangely. The scale was not updated every iteration of the loop, which means the value

Please help: how to call xilb drawing functions to draw on GTK drawing areas?

2008-03-05 Thread Ke Jin
Dear All, I am trying to use xlib function XDrawArc() to draw on a GTK drawing area but it doesn't work, while the GDK function gdk_draw_arc() works perfect. Does anyone know why? Below are my code: #include #include #include #include #include #include #include #include void destroy

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

2008-03-03 Thread Ke Jin
Hi Bin, Thanks for the reply. I am new to GTK and could you please explain it in more details? Thanks, Kay -邮件原件- 发件人: Bin Chen [mailto:[EMAIL PROTECTED] 发送时间: 2008年3月2日 7:33 收件人: Ke Jin 抄送: gtk-app-devel-list@gnome.org 主题: Re: Please help: How to embed a X window in a GTK window? On

答复: 答复: 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

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

2008-03-02 Thread Ke Jin
s, Ke -邮件原件- 发件人: Kevin DeKorte [mailto:[EMAIL PROTECTED] 发送时间: 2008年3月2日 8:38 收件人: Bin Chen; gtk-app-devel-list@gnome.org; [EMAIL PROTECTED] 主题: Re: Please help: How to embed a X window in a GTK window? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bin Chen wrote: > On 3/2/08, Ke Jin

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

Please help: How to embed an X window into a GTK Window?

2008-03-01 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 idea about