Re: Handling Unix signals in a GTK+ application

2006-03-14 Thread Soeren Sandmann
Chris Vine <[EMAIL PROTECTED]> writes: > That's not right. Idle handlers do not busy wait. They do trigger > invocations of the event loop at indeterminate intervals. They are also very > common (if you don't want to communicate with the glib event loop from other > threads with a pipe, you

Re: The procedure entry point g_intern_static_string could not be located

2006-03-14 Thread Tor Lillqvist
Tomasz Ostrowski writes: > This would be no problem if there was glib-2.10.1 win32 binary > package available from where gtk-2.8.15 package is. I added a gtk+-2.8.15.README file that points to ../../v2.10/win32... > > What do the Linux distros that offer GTK+ 2.8.15 do? > They do have packag

Re: The procedure entry point g_intern_static_string could not be located

2006-03-14 Thread Tomasz Ostrowski
On Tue, 14 Mar 2006, Tor Lillqvist wrote: > > When I start gtk-demo.exe under WindowsXP I receive the message: > >The procedure entry point g_intern_static_string could not be > >located in the dynamic link library libglib-2.0-0.dll. > > Ah, yes. The GTK+ 2.8.15 Win32 packages are buil

Re: callbacks: doing i/o bound stuff in them

2006-03-14 Thread Peter
Vassilis Pandis wrote: >--- Peter <[EMAIL PROTECTED]> wrote: > > > >>Both gtk functions you called emit signals. Signals are processed in >>the main loop. sleep keeps you in the current handler, and the main >>loop doesn't get any say in the matter until on_druid_pf_finish >>returns. I'm not

The procedure entry point g_intern_static_string could not be located

2006-03-14 Thread Tor Lillqvist
Tomasz Ostrowski writes: > > When I start gtk-demo.exe under WindowsXP I receive the message: > The procedure entry point g_intern_static_string could not be > located in the dynamic link library libglib-2.0-0.dll. Ah, yes. The GTK+ 2.8.15 Win32 packages are built against GLib 2.10.

Re: Free a pangolayout

2006-03-14 Thread Jorge Torres
Hi. You should use g_object_unref(). Jorge. El mar, 14--2006 a las 09:34 -0300, Alexandre escribió: > Hi > In my app I create a pangolayout, but I don't know how to free it (like > a g_object_unref with the g_object). Anyone knows how to do it? > > Thanks > Alexandre. > >

The procedure entry point g_intern_static_string could not be located

2006-03-14 Thread Tomasz Ostrowski
When I start gtk-demo.exe under WindowsXP I receive the message: The procedure entry point g_intern_static_string could not be located in the dynamic link library libglib-2.0-0.dll. I've extracted the following files atk-1.10.3.zip atk-dev-1.10.3.zip cairo-1

tab stops in gtkcellrenderertext

2006-03-14 Thread control H
Hi, I try to change the default tab stops setting in a gtkcellrenderertext. However, I can't find a possibility to do this. There isn't for example a pango property that does the job. And I can't find another "link" to the underlying pango structures. Any ideas on this? Thanks in advance. ___

Free a pangolayout

2006-03-14 Thread Alexandre
Hi In my app I create a pangolayout, but I don't know how to free it (like a g_object_unref with the g_object). Anyone knows how to do it? Thanks Alexandre. __ Faça ligações para outros computadores com o novo Yahoo! Messenger h

Re: glib hash tables

2006-03-14 Thread Adrian Vasile
Many thanks, the problem was destroying c & d. All I need now is to have a dynamic list (insert, update, delete) keeping the client struct. I thought hash tables would be nice cause they provide fast lookups. This implies keeping in memory, besides the GHashTable, also an array of client. Is there

Re: glib hash tables

2006-03-14 Thread David Necas (Yeti)
On Tue, Mar 14, 2006 at 11:48:56AM +0200, Adrian Vasile wrote: > I'm having trouble understanding the GHashTable and it's member > functions. GHashTable just stores some untyped pointers. Since it has no idea what type the stored data are, it cannot make a copies of them and does not make copies

glib hash tables

2006-03-14 Thread Adrian Vasile
Hi all, I'm having trouble understanding the GHashTable and it's member functions. I've made the following simple code for testing purposes: #include #include typedef struct _client { guint id; guint win; gchar *name; gchar

Re: editable GtkCellRendererText and ypad properties

2006-03-14 Thread Axel Simon
On Mon, 2006-03-13 at 18:48 +0100, Matteo Nastasi wrote: > Hi guys, > > there is a strange effect in GtkCellRendererText when you set ypad > property to a value like 15 or 20 and then click to edit it: >the editable field fill all the cell and the text go up > >You can see the effect at:

Re: showing a txt file in a dialog

2006-03-14 Thread rupert
Ok, it was the wrong way, goob it wroking with a function that creates a new window, so the last question is how iu can call a quit signal to close this window and leave the main window open? void show_readme(GtkTreeSelection *auswahl, gpointer data){ GtkTreeIter iter; GtkTreeModel *model = NULL

Re: callbacks: doing i/o bound stuff in them

2006-03-14 Thread Santhosh
You may need to refer to this post first.. http://mail.gnome.org/archives/gtk-app-devel-list/2006-February/msg00266.html Callbacks should not do processing intensive or blocking calls... you may create threads to do the job... You can also use if gtk_events_pending(): gtk_main_teration() Make su