GTK Themes, and theme libraries : how do they fit (get plugged) into GTK ?

2006-12-13 Thread Philippe Bertin
Hello, all, Some time ago I asked a question on a library that hadn't been found upon installing a new GTK library (libqtengine.so, that was). I slowly start realising now that this was a file belonging to what's called a theme library, and that it is actually not an integral part of GTK itsel

Re: When are these g_io_channel_*() input conditions occurring ?

2006-12-06 Thread Philippe Bertin
ition that's fulfilled when receiving such an OOB character (but this is only based on my own -wild- assumption, not on any documentation I found on the subject). Kind regards, PhB Daniel Yek wrote: > At 11:07 PM 12/5/2006, Philippe Bertin wrote: > >> Hello all, >> >>

When are these g_io_channel_*() input conditions occuring ?

2006-12-05 Thread Philippe Bertin
Hello all, This is a new thread, based upon a very recent thread in this list, and a some things I asked myself in the (recent) past when I programmed a g_io_channel watcher callback. I used, for my GIOChannel, the condition G_IO_IN, in order to have my callback called whenever there was any i

how is libqtengine.so to be built from source ?

2006-12-05 Thread Philippe Bertin
Hello, I have gtk installed on my system. Also, I built gtk+ twice (versions 2.4.0 and 2.10.6) from sources, with other PKG_CONFIG_PATH's and all the rest, so that everything is neatly out of each other's way. However, in the last configuration (2.10.6), I am faced with the following warning(/

Re: gtk_object_sink in glade_palette_init

2006-11-28 Thread Philippe Bertin
Thanks for shedding some light on this piece of code. There's some more light at the end of my dark GTK-knowledge tunnel. >AFAIU, after the _new() the box has a special reference to it: the ref >count is one, but it is marked as "floating"[1]. Now gtk_object_sink() >decrements the ref coung by on

Re: gtk_object_sink in glade_palette_init

2006-11-28 Thread Philippe Bertin
ng in my eyes), for removing the reference /just the statement after/. Because that's what's happening in my understanding. Beware : I'm not-too-GTK-familiar, so maybe (/probably) I misunderstand the meaning of it all. Kind regards, PhB David Nečas (Yeti) wrote: >On Tue, Nov

gtk_object_sink in glade_palette_init

2006-11-27 Thread Philippe Bertin
Hello, This question could've gone to the glade list. But the explanation may help GTK programmers in general (I think), so I rather ask it here. In glade_palette_init, there's this piece of code : /* Add items tray (via a scrolled window) */ priv->tray = gtk_vbox_new (FALSE, 0); g_

Re: g_signal_connect_swapped

2006-11-27 Thread Philippe Bertin
Richard, I'm also, as you are, a rather inexperienced GTK programmer, but I hope to still help you by the following, without immediately digging into all kinds of technical details : whereever the _swapped variant is used, that is done to call a callback from within a widget, to a procedure tha

the use of glib's n_preallocs in gtype.h

2006-10-25 Thread Philippe Bertin
Hello, all, glib's gtype.h is rather sparse when it comes to commenting what's the purpose of n_preallocs ? I've done a quick grep on gtk's usage of that item, and it seems as if it's always a power of 2. I guess it's a default for preallocating memory for something further down the line; but

Re: Glade GUI: changing mechanism

2006-10-24 Thread Philippe Bertin
Hello, Tristan Van Berkom wrote: > Thats an interesting idea, I'm sure a simple program could be used > to parse signals in a glade file and ensure the availability of the > said callbacks in the binary - this kind of tool could be used in > makefiles to validate a built program, maybe we could t

Re: Glade GUI: changing mechanism

2006-10-23 Thread Philippe Bertin
Hello, Tristan Van Berkom wrote: >> You're right in some sense. Still, how can one statically prove that >> the created .glade file is *statically* correct ? I mean by this, how >> can the (no longer existing, no longer statically compiled) program >> be proven it would link statically ? I hav

Re: Glade GUI: changing mechanism

2006-10-22 Thread Philippe Bertin
Hello, Tristan, Tristan Van Berkom wrote: > Why would someone want to go from > glade file --> generated code --> GUI > when you can simply go from > glade file --> GUI > with much less code-generators & generated code to maintain ? > You're right in some sense. Still, how can one statically p

Re: Glade GUI: changing mechanism

2006-10-21 Thread Philippe Bertin
Andrea Zagli wrote: >use libglade > >http://www.jamesh.id.au/software/libglade/ > Well, I guess Fernando's intention is to continue to use some glade command-line utility/) add-on to continue to use the generated code in the compiled program ? I'd like to know this too. Because libglade forces

To which package does "glade-catalog.dtd" belong ?

2006-10-17 Thread Philippe Bertin
Hello all, Sorry to crosspost, but I think this topic can belong to any of the 3 newslists. If this is not good with you, please indicate me which list is most appropriate, please (please do not flame me). While reading http://glade.gnome.org/docs/catalogintro.html I see it is possible to vali