GTK package installation issue

2007-11-21 Thread saravanan m
Hi All, We have a GTK(version-2.0) User Interface application(in c) developped for solaris environment. It works fine in one host where GTK is installed in a default package dir(/usr/local). And the same application fails(user images are not showing, but system icons are loaded) in another

Multiple Widget Instantiation

2007-11-21 Thread Olivier Delhomme
Hello, I have a libglade file containing widgets descriptions and I want to use some of those descriptions as templates in order to instantiate the same widget multiple times. Think about the thunderbird find dialog box where you instantiate a new line of filters when clicking on + button. Each

memory leak in gtk

2007-11-21 Thread c f
Hi, I have made a simple application with a top level window: #include gtk/gtk.h #include mcheck.h gboolean OnDeleteHandler(GtkWidget *sender, GdkEvent *event, gpointer data) { return FALSE; } void OnDestroyHandler(GtkWidget

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

2007-11-21 Thread Nick Gravgaard
On 21/11/2007, Behdad Esfahbod [EMAIL PROTECTED] wrote: 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

event for window maximize

2007-11-21 Thread Guenther Meyer
hi, maybe here is someone, who could help me: my application contains a widget with a drawable, that has to be redrawn in a differet size when the application window is resized. when I resize the window this works perfectly; I did this by connecting a callback that does the necessary stuff to

Re: memory leak in gtk

2007-11-21 Thread Michael Lamothe
I'm no master profiler but I think that you'll want to put a gtk_widget_destroy(mainWindow); after the gtk_main();. You really don't need to do this because it will be destroyed when the application terminates 0.01 seconds after that line. But if you feel you must then go for it. I also like to

Re: memory leak in gtk

2007-11-21 Thread c f
Hi Michael, Thanks for your suggestion. Actually I have not mentioned but I also tried to decrease the ref count of the mainWindow (just to be sure). In theory it is already destroyed at this point as the main quit is called in the destoyed handler of the main window. In that case (unref), GTK

Re: memory leak in gtk

2007-11-21 Thread Brian J. Tarricone
On Wed, 21 Nov 2007 20:15:25 +0100 c f wrote: [...] I have used mtrace to check for memory leaks. In this simple application there are more than 5000 memory allocation which is not freed. See: http://www.gtk.org/faq/#AEN703 I have checked the GTK documentation and it states that gtk_exit

Re: GTK package installation issue

2007-11-21 Thread saravanan m
To make you the problem clear, we have a two different applications developped in different versions of GTK(app1 is developed in GTK2.0, app2 is mozilla comes with solaris10). We had to install both the versions of GTK packeges on the same host, because we need to deploy both the applications on

Re: event for window maximize

2007-11-21 Thread [EMAIL PROTECTED]
Hi, are you handling the resizing in the main window's configure- event handler? I have a similar situation but I'm using the widget's (a drawing area) configure-event handler and it seems to work (resize window, maximize, etc.) Cheers Federico

Merging gio into glib

2007-11-21 Thread Matthias Clasen
At the gtk team irc meeting yesterday, there was a broad consensus that the merge plan as laid out earlier by Alex on this list (ie merging gio into the glib vcs and tarball, but keep it in a separate shared library) makes sense and that we should proceed with this as soon as gio is ready.

Re: Merging gio into glib

2007-11-21 Thread Vincent Untz
Le mercredi 21 novembre 2007, à 11:57 -0500, Matthias Clasen a écrit : At the gtk team irc meeting yesterday, there was a broad consensus that the merge plan as laid out earlier by Alex on this list (ie merging gio into the glib vcs and tarball, but keep it in a separate shared library) makes

Re: Extended Layout Summary

2007-11-21 Thread Havoc Pennington
Hi, Matthias Clasen wrote: 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

Re: Extended Layout Summary

2007-11-21 Thread Behdad Esfahbod
On Nov 21, 2007 1:53 PM, Havoc Pennington [EMAIL PROTECTED] wrote: Hi, Matthias Clasen wrote: 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

Re: Extended Layout Summary

2007-11-21 Thread Behdad Esfahbod
On Nov 20, 2007 10:07 PM, Matthias Clasen [EMAIL PROTECTED] wrote: 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

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

2007-11-21 Thread Soeren Sandmann
Bastien Nocera [EMAIL PROTECTED] writes: 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

Re: What's the purpose of gtk_menu_attach_to_widget ?

2007-11-21 Thread Soeren Sandmann
Kalle Vahlman [EMAIL PROTECTED] writes: 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 ? In short, it's convenience function for tying the menu's lifecycle to a widget. I think the only thing to

Re: Extended Layout Summary

2007-11-21 Thread Havoc Pennington
Hi, Behdad Esfahbod wrote: The PACK_IF_FITS children are done in a second pass after other children, the if_fits flag indicates which pass this is. If if_fits=TRUE we need to skip if_fits children that did not fit. Interesting. Do you think that will be useful to add to Gtk+? I

Re: Extended Layout Summary

2007-11-21 Thread Behdad Esfahbod
On Nov 21, 2007 5:07 PM, Mathias Hasselmann [EMAIL PROTECTED] wrote: OK, so lets six other years until we get the perfect solution Havoc dreams of in his pipe dreams. Well done. Is that supposed to be a joke or what? You asked for review, Havoc suggested a slight API change that I fully

Re: Extended Layout Summary

2007-11-21 Thread Havoc Pennington
Hi, Mathias Hasselmann wrote: OK, so lets six other years until we get the perfect solution Havoc dreams of in his pipe dreams. I think you misunderstand the intent; you said here's the proposal and I asked some questions and said what about doing it this way You are very welcome to say

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

2007-11-21 Thread Bastien Nocera
On Wed, 2007-11-21 at 21:15 +0100, Soeren Sandmann wrote: Bastien Nocera [EMAIL PROTECTED] writes: 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:

Re: GLib and Gtk+ branched for 2.15.0

2007-11-21 Thread Renato Araujo
And about offscreen redirection[1]? Will be in the next release? [1] Bug 318807 - http://bugzilla.gnome.org/show_bug.cgi?id=318807 On Nov 19, 2007 1:12 PM, Emmanuele Bassi [EMAIL PROTECTED] wrote: On Mon, 2007-11-19 at 16:23 +0100, Tim Janik wrote: upstream GLib and Gtk+ have been

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

2007-11-21 Thread Matthias Clasen
On Nov 21, 2007 7:46 PM, Bastien Nocera [EMAIL PROTECTED] wrote: It's the same API, but the code is different. I'll post it to bugzilla. Mind explaining what's different? Did you use the code in the bug as a starting point, or is it completely new code? If it's all new code, what was so

Re: Extended Layout Summary

2007-11-21 Thread Matthias Clasen
On Nov 21, 2007 3:04 PM, Behdad Esfahbod [EMAIL PROTECTED] wrote: On Nov 20, 2007 10:07 PM, Matthias Clasen [EMAIL PROTECTED] wrote: 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

Re: Extended Layout Summary

2007-11-21 Thread Behdad Esfahbod
On Wed, 2007-11-21 at 22:10 -0500, Matthias Clasen wrote: On Nov 21, 2007 3:04 PM, Behdad Esfahbod [EMAIL PROTECTED] wrote: On Nov 20, 2007 10:07 PM, Matthias Clasen [EMAIL PROTECTED] wrote: On Nov 20, 2007 8:45 PM, Behdad Esfahbod [EMAIL PROTECTED] wrote: a) Maximize number of