Extended Layout Summary

2007-11-20 Thread Mathias Hasselmann
GTK+ finally has been branched for the next release cycle, which means that features can be added. So it seems to be a good time to descibe the extended layout patches I've created during this Summer of Code: * http://live.gnome.org/MathiasHasselmann/NewLayoutManager *

Re: Extended Layout Summary

2007-11-20 Thread Vincent Untz
Hi Mathias, Le mardi 20 novembre 2007, à 13:23 +0100, Mathias Hasselmann a écrit : The solution to this problem is simple: Interpret the result of the size-request signal as absolutely minimum size and introduce a new function for expressing the natural size of a widget. Obviously something I

Re: Extended Layout Summary

2007-11-20 Thread Mathias Hasselmann
Am Dienstag, den 20.11.2007, 14:10 +0100 schrieb Vincent Untz: Hi Mathias, Le mardi 20 novembre 2007, à 13:23 +0100, Mathias Hasselmann a écrit : The solution to this problem is simple: Interpret the result of the size-request signal as absolutely minimum size and introduce a new

Re: Extended Layout Summary

2007-11-20 Thread Vincent Untz
Le mardi 20 novembre 2007, à 08:45 -0500, Owen Taylor a écrit : On Tue, 2007-11-20 at 14:10 +0100, Vincent Untz wrote: Hi Mathias, Le mardi 20 novembre 2007, à 13:23 +0100, Mathias Hasselmann a écrit : The solution to this problem is simple: Interpret the result of the size-request

Re: Extended Layout Summary

2007-11-20 Thread Vincent Untz
Le mardi 20 novembre 2007, à 14:32 +0100, Mathias Hasselmann a écrit : Am Dienstag, den 20.11.2007, 14:10 +0100 schrieb Vincent Untz: Hi Mathias, Le mardi 20 novembre 2007, à 13:23 +0100, Mathias Hasselmann a écrit : The solution to this problem is simple: Interpret the result of the

Re: Extended Layout Summary

2007-11-20 Thread Owen Taylor
On Tue, 2007-11-20 at 14:10 +0100, Vincent Untz wrote: Hi Mathias, Le mardi 20 novembre 2007, à 13:23 +0100, Mathias Hasselmann a écrit : The solution to this problem is simple: Interpret the result of the size-request signal as absolutely minimum size and introduce a new function for

Re: Extended Layout Summary

2007-11-20 Thread Mathias Hasselmann
Am Dienstag, den 20.11.2007, 14:49 +0100 schrieb Vincent Untz: Le mardi 20 novembre 2007, à 14:32 +0100, Mathias Hasselmann a écrit : Am Dienstag, den 20.11.2007, 14:10 +0100 schrieb Vincent Untz: Hi Mathias, Le mardi 20 novembre 2007, à 13:23 +0100, Mathias Hasselmann a écrit :

Re: Extended Layout Summary

2007-11-20 Thread Vincent Untz
Le mardi 20 novembre 2007, à 15:15 +0100, Mathias Hasselmann a écrit : Am Dienstag, den 20.11.2007, 14:49 +0100 schrieb Vincent Untz: The issue here is that the current way it works is that you can have more than one natural sizes, No, you have only one natural size. Ok, right. But you

Re: Extended Layout Summary

2007-11-20 Thread Mathias Hasselmann
Am Dienstag, den 20.11.2007, 15:53 +0100 schrieb Vincent Untz: Assume the natural width is 500px in the first case, 350px in the second case and 200px in the third case. And the minimum width is 400px, 280px and 150px. In such a situation, it doesn't make much sense to allocate 250px to the

[REMINDER] GTK+ Team Meeting on IRC

2007-11-20 Thread Emmanuele Bassi
hi everyone; as you might have seen on the wiki page[0], now that GLib and GTK+ have been branched for development, the (bi-)weekly IRC meetings can restart as well. so, here it is (and sorry for the short notice): date: 2007-11-20 time: 20:00 UTC [1] #gtk-devel on irc.gnome.org meeting

Re: Extended Layout Summary

2007-11-20 Thread Ryan Lortie
On Tue, 2007-11-20 at 17:13 +0100, Mathias Hasselmann wrote: For supporting your feature there should be a separate call: void (*get_supported_sizes) (GtkOrientation orientation, GtkRequisition **sizes, guint

Re: Extended Layout Summary

2007-11-20 Thread Vincent Untz
Le mardi 20 novembre 2007, à 11:55 -0500, Ryan Lortie a écrit : For things like toolbars, wnck window list and so on, it's very unclear what the correct thing to do it. You could spend a very long time thinking about it and still not find an elegant solution. This is definitely no time to go

Re: Extended Layout Summary

2007-11-20 Thread Mathias Hasselmann
Am Dienstag, den 20.11.2007, 11:55 -0500 schrieb Ryan Lortie: This is definitely no time to go blindly adding new API. :) True. Very true. -- Mathias Hasselmann [EMAIL PROTECTED] http://taschenorakel.de/ signature.asc Description: Dies ist ein digital signierter Nachrichtenteil

Re: Extended Layout Summary

2007-11-20 Thread Havoc Pennington
Hi, While I haven't looked at the patches in detail, based on your writeup it feels like the interfaces here will make it a little hard to implement in widgets. In HippoCanvas I ended up with this: void (* get_width_request)(HippoCanvasItem *canvas_item,

Monitor and projector hotplug (aka RandR 1.2 support for GTK+)

2007-11-20 Thread Soeren Sandmann
Hi I have been doing some work on adding RandR 1.2 support to GTK+. There is an initial patch here: http://www.gnome.org/~ssp/randr/gtk.patch The interesting part is perhaps the API: A new signal on GdkScreen: void (*monitors_changed) (GdkScreen *screen); that is emitted whenever

Re: [REMINDER] GTK+ Team Meeting on IRC

2007-11-20 Thread Bastien Nocera
On Tue, 2007-11-20 at 19:41 +, Emmanuele Bassi wrote: hi everyone; as you might have seen on the wiki page[0], now that GLib and GTK+ have been branched for development, the (bi-)weekly IRC meetings can restart as well. English sucks. Is this twice a week, or once every two weeks? ( I

Re: Monitor and projector hotplug (aka RandR 1.2 support for GTK+)

2007-11-20 Thread Bastien Nocera
On Wed, 2007-11-21 at 00:39 +0100, Soeren Sandmann wrote: Hi I have been doing some work on adding RandR 1.2 support to GTK+. There is an initial patch here: http://www.gnome.org/~ssp/randr/gtk.patch Was that based on the patch in the bugzilla:

Re: [REMINDER] GTK+ Team Meeting on IRC

2007-11-20 Thread Emmanuele Bassi
On Tue, 2007-11-20 at 23:47 +, Bastien Nocera wrote: On Tue, 2007-11-20 at 19:41 +, Emmanuele Bassi wrote: hi everyone; as you might have seen on the wiki page[0], now that GLib and GTK+ have been branched for development, the (bi-)weekly IRC meetings can restart as well.

Re: Extended Layout Summary

2007-11-20 Thread Behdad Esfahbod
Thanks Mathias for the write-up. You didn't get much into the baseline stuff which was the really interesting part about text, but other than that, the rest looks good from that point of view. Comments below: On Tue, 2007-11-20 at 07:23 -0500, Mathias Hasselmann wrote: When a container

Re: Extended Layout Summary

2007-11-20 Thread Behdad Esfahbod
On Tue, 2007-11-20 at 20:09 -0500, Behdad Esfahbod wrote: On Tue, 2007-11-20 at 07:23 -0500, Mathias Hasselmann wrote: When a container widget got more space allocated than requested, it considers the difference between natural and requested size of its children to distribute that

Re: Monitor and projector hotplug (aka RandR 1.2 support for GTK+)

2007-11-20 Thread Matthias Clasen
On 21 Nov 2007 00:39:29 +0100, Soeren Sandmann [EMAIL PROTECTED] wrote: Comments appreciated. Looks pretty close to what Pascal and I had worked out earlier in bugzilla, so I'd say it looks fine api wise. The only things that jumped out in the patch were the debug printfs that are still in

Re: Extended Layout Summary

2007-11-20 Thread Matthias Clasen
On Nov 20, 2007 8:45 PM, Behdad Esfahbod [EMAIL PROTECTED] wrote: a) Maximize number of children taking their natural size. I am not convinced this is always the best strategy. Doesn't this encourage starving one child in favour of the rest of the pack getting their natural size ? If you

Re: Extended Layout Summary

2007-11-20 Thread Matthias Clasen
On Nov 20, 2007 11:55 AM, Ryan Lortie [EMAIL PROTECTED] wrote: On Tue, 2007-11-20 at 17:13 +0100, Mathias Hasselmann wrote: For supporting your feature there should be a separate call: void (*get_supported_sizes) (GtkOrientation orientation,

What's the purpose of gtk_menu_attach_to_widget ?

2007-11-20 Thread Wang Baisheng
Hi, What's the purpose of gtk_menu_attach_to_widget ? And is there any bad effect if I create a gtk menu without using this function ? BRs, Baisheng ___ gtk-devel-list mailing list gtk-devel-list@gnome.org

Re: Error in GTK+ documentation

2007-11-20 Thread Gian Mario Tagliaretti
2007/11/20, Dan H [EMAIL PROTECTED]: Hi Dan, This needs to be changed in the docs. Maybe someone on this list can bring it to the attention of whoever is responsible. please just file a bug into bugzilla [1] product GTK component docs. cheers -- Gian Mario Tagliaretti +++ [1]

Re: How to get stuff out of a GValue?

2007-11-20 Thread Dan H
On Tue, 20 Nov 2007 01:11:17 +0100 Benoît Dejean [EMAIL PROTECTED] wrote: - GValue left_attach; + GValue left_attach = { 0, }; + + g_value_init (left_attach); + I always though that this requirement was error prone. You just get to initialize your GValue twice to make it OK. A lot

Re: GUI problem.

2007-11-20 Thread Michael Lamothe
Hi Alberto, Sorry, I'm not sure that I follow you. I think that you are saying that you want to write the C file by yourself. I was simply hoping to give you some pointers/recommendations. If you still don't want to offer-up the source then maybe you can explain what your application does,

Re: GUI problem.

2007-11-20 Thread Michael Lamothe
Have a dekko at this: http://library.gnome.org/devel/gdk/unstable/gdk-Threads.html. Thanks, Michael On 21/11/2007, alberto barbaro [EMAIL PROTECTED] wrote: Well. I did a small debug on my program. I understand this: If i don't call the function updateGUI() all works but if i call it i have

How to display Video in main window

2007-11-20 Thread sumit kumar
Hi all, I am working on multimedia application. I want to display video in main window. window = gtk_window_new (GTK_WINDOW_TOPLEVEL); I am receiving video frames in buffer.So how can I do that..which widget should i use?? regards, sumit ___

exec application in windows

2007-11-20 Thread Martin (OpenGeoMap)
Hi: I am trying exec a exe in windows like this: GError *error; gboolean ii=g_spawn_comand_line_async (C:/Archivos de programa/GlobalMapper8/global_mapper8.exe,error); and so: GError *error; gboolean ii=g_spawn_comand_line_async (C:/Archivos de

Re: exec application in windows

2007-11-20 Thread Michael Lamothe
Have you tried, gboolean ii=g_spawn_comand_line_async (C:/Archivos de programa/GlobalMapper8/global_mapper8.exe,error); Thanks, Michael On 21/11/2007, Martin (OpenGeoMap) [EMAIL PROTECTED] wrote: Hi: I am trying exec a exe in windows like this: GError *error; gboolean

Re: exec application in windows

2007-11-20 Thread Martin (OpenGeoMap)
Have you tried, gboolean ii=g_spawn_comand_line_async (C:/Archivos de programa/GlobalMapper8/global_mapper8.exe,error); Thanks, Michael Yes, but don´t work Regards. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: exec application in windows

2007-11-20 Thread Michael Lamothe
If you want to put a quote in in your string you should be using \, right? Not . Also try, gboolean ii=g_spawn_comand_line_async (\C:/Archivos de programa/GlobalMapper8/global_mapper8.exe\,error); I would've thought that one of those would work. Thanks, Michael On 21/11/2007, Michael

Re: exec application in windows

2007-11-20 Thread Tomas Carnecky
Michael Lamothe wrote: gboolean ii=g_spawn_comand_line_async (C:/Archivos de programa/GlobalMapper8/global_mapper8.exe,error); gboolean ii=g_spawn_comand_line_async (C:/Archivos de programa/GlobalMapper8/global_mapper8.exe,error); The two are exactly the same, C (preprocessor?)

Re: exec application in windows

2007-11-20 Thread Michael Lamothe
Ohhh ... my bad, never tried it. Apologies, Michael On 21/11/2007, Tomas Carnecky [EMAIL PROTECTED] wrote: Michael Lamothe wrote: gboolean ii=g_spawn_comand_line_async (C:/Archivos de programa/GlobalMapper8/global_mapper8.exe,error); gboolean ii=g_spawn_comand_line_async

Re: exec application in windows

2007-11-20 Thread Martin (OpenGeoMap)
thanks!! This works fine: gboolean ii=g_spawn_command_line_async (\C:/Archivos de programa/GlobalMapper8/global_mapper8.exe\ \C:/Archivos de programa/files/file1.txt\,error); Regards. ;-) ___ gtk-app-devel-list mailing list

getting a pango tabarray for a specific line of text

2007-11-20 Thread Nick Gravgaard
Hi all, My application has non-uniform tabs of different sizes on different lines. Does anyone know how I should go about getting a pango tabarray for a specific line of text in a textbuffer? Thanks in advance, Nick ___ gtk-app-devel-list mailing list

Re: getting a pango tabarray for a specific line of text

2007-11-20 Thread Behdad Esfahbod
On Wed, 2007-11-21 at 01:32 +0100, Nick Gravgaard wrote: Hi all, My application has non-uniform tabs of different sizes on different lines. Does anyone know how I should go about getting a pango tabarray for a specific line of text in a textbuffer? Hi, That's not possible. If you have

Re: How to display Video in main window

2007-11-20 Thread Prateek . Mathur
Hi Sumit, Recently i also had the same task to do n i tried a lot many things for doing this. We finally used a gtk drawing area with gdkpixbuf. U can attach a gdkpixbuf with the drawing area and then use ur frames to update the pixbuf as they arrive. Do sum simple search on pixbuf to know