Re: Playing around with two windows in a program: problem

2008-01-11 Thread vijayasarathy
Also, 1. Please dont get into names. I have changed them so that I disclose not much about what I am doing :-) 2. call back function func1() for the wdgt_window2 on destroy calls gtk_main_quit(), does nothing else. Thanks Vijay On Fri, January 11, 2008 5:03 pm, [EMAIL PROTECTED] wrote:

runtime customization of TextBuffer tags

2008-01-11 Thread Basile STARYNKEVITCH
Hello All (FWIW, I also asked this on http://gtkforums.com/about974.html without success) Is there any easy way to customize or override the appereance of tags in a GtkTextTagTable. I am filling it with code like tag = gtk_text_tag_new (heading); g_object_set (tag, weight,

Playing around with two windows in a program: problem

2008-01-11 Thread vijayasarathy
Hi All, I was caught in a situation like this: I have three windows, and a main window. The main window contains three radio buttons 1)option1 2)option2 3)option3. On the coresponding option being chosen, program then has to a)close main window b)open an another window(depending on the

Re: Playing around with two windows in a program: problem

2008-01-11 Thread vijayasarathy
Now I have seen that the program works even without calling gtk_main_iteration at the end of closing and opening the two windows. My doubt: What is the role of gtk_main()? When should it be called ? Should I be calling the main function when I am changing between windows ? On Fri,

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

2008-01-11 Thread Tristan Van Berkom
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, button. But from the perspective of X server, this widgets are just bitmaps with the states updated by GTK+, right? A

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

2008-01-11 Thread 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 large. If not using shared memory to transfer the decoded image data, obviously the

Keep window on top?

2008-01-11 Thread Randy Poe
I'm experimenting with a modal dialog and finding that it has an unfortunate behavior. There is nothing forcing the window to stay on top. As a result, you can click on the underlying window to bring it up, but because there is an active modal dialog the main window is unresponsive, and the user

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 memory segment? In detail can you show me some pseudo

Re: Keep window on top?

2008-01-11 Thread Peter Clifton
On Fri, 2008-01-11 at 10:18 -0500, Randy Poe wrote: I'm experimenting with a modal dialog and finding that it has an unfortunate behavior. There is nothing forcing the window to stay on top. As a result, you can click on the underlying window to bring it up, but because there is an active

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

2008-01-11 Thread Tristan Van Berkom
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 memory segment? In detail can you show me some pseudo code to how to do it? Well Gdk does know because it created the backing

how can I find out the current font size

2008-01-11 Thread ying lcs
Hi, When I use this function to paint text, can you please tell me how can I find out the font size of the text. voidgdk_draw_layout (GdkDrawable *drawable, GdkGC *gc,

row_activated and modifiers keys

2008-01-11 Thread Tiberius DULUMAN
On the handler of the row_activated signal of the TreeView, I need to implement different behaviour if CTRL or SHIFT key is pressed. ( ie. when double-clicking a row something is happening, and when double-clicking it and SHIFT key is pressed something else should happen ). Does anyone have any

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, button. But from the perspective of X server,

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 using pure framebuffer implementation. The performance difference is

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

2008-01-11 Thread Tristan Van Berkom
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 be of less concern than this from the performance point of view. OK, so your point is because the convert process must be done

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 be of less concern than this from the performance point