How to write panel like GNOME-panel

2007-09-29 Thread Bin Chen
Hi, I want to write a panel like gnome-panel, the main objective is receive the application startup notification(including the app name, and icon), then I can iconize it in the panel. This can enable user maximize/minimize a window by clicking the icon on the panel. My question is how can I get t

Re: How to write panel like GNOME-panel

2007-09-29 Thread Bin Chen
the code, could you tell me how the panel knows the startup/exit signal of the application, is it any fomal interface? > On 9/29/07, Bin Chen <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I want to write a panel like gnome-panel, the main objective is > > receive the a

How to free the memory occupied by window??

2007-10-19 Thread Bin Chen
Hi, A strange problem that I can't free the memory allocated for window, I take the example in notebook.c, it is in examples directory, and add some profile function in it, the result shows: binch24287 0.0 0.4 11624 4348 pts/0S+ 16:49 0:00 ./notebo

write a media player using gtk+

2007-11-30 Thread Bin Chen
Hi, I want to write a media(video) player using gtk+, I take a look at several existing project, they all use XWindow API to display decoded image, but I am not familiar with XLib, so I want to know if it is possible to use pure GTK+ API to achieve this? What about the performance comparing to use

Re: write a media player using gtk+

2007-11-30 Thread Bin Chen
On 11/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On Nov 30, 2007 2:45 AM, Bin Chen <[EMAIL PROTECTED]> wrote: > > image, but I am not familiar with XLib, so I want to know if it is > > possible to use pure GTK+ API to achieve this? What about the > >

How to implement a image thumbnail container widget?

2007-12-09 Thread Bin Chen
Hi, I want to implement a widget like a image thumbnail container, which contains a lot of icons in it, and it is scrollable. Is there any existing examples to reference? Thanks. Bin ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http:

Re: How to implement a UI like Microsoft Word table by GTK??

2007-12-10 Thread Bin Chen
在 2007-12-11二的 12:48 +0800,li_top写道: > Hi all > I have a problem to implement a UI like Microsoft Word table . > That is , The UI have tables . User can combine 2or3 or more tables to one > table. How to > > do this UI? Please help me . > Thanks & Regardse > Tom > The UI like following: > > __

GTK IM switch by software keyboard

2008-01-03 Thread Bin Chen
Hi, I have ported a new GTK input method module to my platform, the regular steps to switch input method in a GTK+ text widget is to right click the entry point and select the desired input method. Now I want to do all this more simpler, I want to add a button in the software keyboard or a hardwa

Re: GTK IM switch by software keyboard

2008-01-05 Thread Bin Chen
On Jan 5, 2008 5:44 PM, Murray Cumming <[EMAIL PROTECTED]> wrote: > > On Thu, 2008-01-03 at 22:52 +0800, Bin Chen wrote: > > I have ported a new GTK input method module to my platform, the > > regular steps to switch input method in a GTK+ text widget is to right >

Whats the purpose of libegg

2008-01-05 Thread Bin Chen
Hello, I searched the internet for libegg and found some tips but still can't got whats libegg working for? Is it another useful widget lib? After I check out the libegg and catch the README: - All features are intended to end up in a stable platform library when they're ready. Whats the

IP address entry widget

2008-01-06 Thread Bin Chen
Hi, Is there any type of IP address entry widget existed? I want to let user input the IP address in dot form, and strict their input to 0-255. Thanks. Bin ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/li

Re: GTK Progress bar: assistance pls.

2008-01-06 Thread Bin Chen
在 2008-01-07一的 12:21 [EMAIL PROTECTED] > Hi All, > > > My name is Vijay, and I have been working with GTK [with glade] for the > last few months in making an UI for certain programs that we have > implemented. > > The programs I am talking about are ones which keep running for hours > together.

Re: GTK Progress bar: assistance pls.

2008-01-06 Thread Bin Chen
在 2008-01-07一的 13:04 [EMAIL PROTECTED] > > Hey Bin Chen[or how do I call you :-)], > > First of all, thank you very much for your instant reply. > > Let me give a simple pseudo-code explaining my problem. Please see what I > can do with this. > > Program Goal: Do wor

Re: GTK Progress bar: assistance pls.

2008-01-06 Thread Bin Chen
在 2008-01-07一的 13:18 [EMAIL PROTECTED] > for(i=start_count;i { > //g_print("i = (%d)\n",i); > while(j<10)//To kill time, keep counting until a > lakh > j++; > j = 0;//Make j 0 for the next loop. >

Re: IP address entry widget

2008-01-07 Thread Bin Chen
ect: Re: IP address entry widget > > > Andrew Krause's book "Foundations of GTK+ Development" uses an IP > widget > derived from an Entry as an example of writing custom widgets. Check it > > out at www.gtkbook.com > > - Micah Carrick > > Developer -

Gray out the gtk entry

2008-01-07 Thread Bin Chen
Hi, I want the gtk_entry widget to be in disabled state, the appearance will be grayed out, how to do this? Thanks. Bin ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Gray out the gtk entry

2008-01-07 Thread Bin Chen
Thanks its right! On Jan 7, 2008 8:47 PM, Kristian Rietveld <[EMAIL PROTECTED]> wrote: > On Mon, Jan 07, 2008 at 08:32:35PM +0800, Bin Chen wrote: > > I want the gtk_entry widget to be in disabled state, the appearance > > will be grayed out, how to do this? > &g

Can GTK+ make use of XSHM extension from MIT

2008-01-10 Thread Bin Chen
Hello, I am running GTK+ in a singal machine, the machine is slow so I want make GTK+ use XSHM extension to accelerate the drawing speed. By taking a look at both GTK+ source code and the MIT-SHM paper, my conclusion is : 1) The XSHM can only support XImage and Pixmap. 2) The GTK+ engine update

Re: Can GTK+ make use of XSHM extension from MIT

2008-01-10 Thread Bin Chen
On Jan 10, 2008 4:26 PM, Tapani Pälli <[EMAIL PROTECTED]> wrote: > Hello; > > ext Bin Chen wrote: > > Hello, > > > > I am running GTK+ in a singal machine, the machine is slow so I want > > make GTK+ use XSHM extension to accelerate the drawing speed. >

Re: Can GTK+ make use of XSHM extension from MIT

2008-01-10 Thread Bin Chen
在 2008-01-10四的 17:40 +0200,Eero Tamminen写道: > Hi, > > ext Bin Chen wrote: > > I am not doing very detailed profiling against this, but by comparing > > the frame rate in my player against using pure framebuffer > > implementation. The performance difference is lar

Re: Can GTK+ make use of XSHM extension from MIT

2008-01-11 Thread Bin Chen
On Jan 11, 2008 10:13 PM, Tristan Van Berkom <[EMAIL PROTECTED]> wrote: > On Jan 11, 2008 12:03 PM, Bin Chen <[EMAIL PROTECTED]> wrote: > > [...] > > > Thanks for your reply, but I wonder how the Xlib or GDK knows the > > image is drawing in a shared memor

Re: Can GTK+ make use of XSHM extension from MIT

2008-01-11 Thread Bin Chen
On Jan 11, 2008 9:54 PM, Tristan Van Berkom <[EMAIL PROTECTED]> wrote: > On Jan 10, 2008 11:38 PM, Bin Chen <[EMAIL PROTECTED]> wrote: > > [...] > > Ok, let me make the things clear, the content in a gdk window includes > > many widgets, such as label, entry, bu

Re: Can GTK+ make use of XSHM extension from MIT

2008-01-11 Thread Bin Chen
On Jan 11, 2008 11:46 PM, Eero Tamminen <[EMAIL PROTECTED]> wrote: > Hi, > > ext Bin Chen wrote: > >> ext Bin Chen wrote: > >>> I am not doing very detailed profiling against this, but by comparing > >>> the frame rate in my player against

Re: Can GTK+ make use of XSHM extension from MIT

2008-01-11 Thread Bin Chen
On Jan 12, 2008 9:46 AM, Tristan Van Berkom <[EMAIL PROTECTED]> wrote: > On Jan 11, 2008 11:01 PM, Bin Chen <[EMAIL PROTECTED]> wrote: > > > > Gdk does all image operations in 32-bits, N800/N810 display is 16-bit. > > > Whether you use SHM or not can b

whats the purpose of quark

2008-01-23 Thread Bin Chen
Hi, In glib there is a primitive named quark, it relates a ID with a string, but whats the advantage for this? Can we use a string instead, just to save some bytes for duplicated strings? Thanks Bin ___ gtk-app-devel-list mailing list gtk-app-devel-list

Does libX11 use shared memory between several clients?

2008-01-28 Thread Bin Chen
Hi, Currently I am looking at libX11's source code, I am curios many libX11 doesn't send the message to the server but only modify some structure in the local memory, such as: void _XRegisterFilterByType( Display *display, Window window, int start_type, int end_type, Bool (*fi

GTK+ applications start slowly due to pango coverage loop?

2008-02-09 Thread Bin Chen
Hi, I am using gtk+ 2.12.5 with pango 1.19.3, when the application starts it elapse about 6 seconds to start(I am running a 400Mhz CPU), when it is busy I take a look by gdb then backtrace shows: #0 0x2b37f298 in pango_coverage_set (coverage=0x49c860, index=8010321, level=PANGO_COVERAGE_EXACT) at

code coverage problem when using fontconfig/freetype

2008-02-17 Thread Bin Chen
Hi, I am curious about a problem of code coverage and font using fontconfig. I know in fontconfig you can specify many font file of one 'family', take a example of Chinese, I see many internet articles to tell people to configure their fonts using two or more fonts for a family, usually the first

Re: How to set background for a gtk window form using .gtkrc file

2008-02-25 Thread Bin Chen
On Mon, Feb 25, 2008 at 9:13 PM, 邓超 <[EMAIL PROTECTED]> wrote: > Hi all, > I want to use .gtkrc file to set the background for a window form to > transparent, how to do it? I have read the tutorial at live.gnome.com, but > it looks that it just can set color for a window form. Thanks! > Gtk can

Re: How to set background for a gtk window form using .gtkrc file

2008-02-26 Thread Bin Chen
On Tue, Feb 26, 2008 at 8:23 PM, 邓超 <[EMAIL PROTECTED]> wrote: > I have searched some articles, it's compositing manager, am I right? Yes. Bin ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-ap

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