Cross compiling gtk+-2.2.0 for arm

2007-05-16 Thread Naveen Kumar
Hi all, I have tool chain to build gtk1.2 applications, but i need to compile applications using gtk2, so i am trying to cross compile gtk2 for using the tool chain i have. The procedure i followed to cross compile gtk+-2.2.0.tarbz2 : [EMAIL PROTECTED] gtk+-2.2.0]# export PATH=$PATH:/usr/local/hyb

Re: Gtk+ and multithreating

2007-05-16 Thread Michael L Torrie
On Wed, 2007-05-16 at 23:22 +0100, Chris Vine wrote: > > And you would need to put the "Hello" argument on the heap, and free it > in the wrapper function, because otherwise it will go out of scope > before the idle handler is called. (Sigh). Use g_strdup() to create the > string on the heap. Si

Question about "suspending" g_io_add_watch

2007-05-16 Thread Robin Wenninger
Hi folks, i'm using g_io_add_watch like this: /* SNIP */ guint result; result = g_io_add_watch(io_chan, G_IO_IN, (GIOFunc) refresh, NULL); g_source_set_can_recurse(g_main_context_find_source_by_id(NULL, result), FALSE); /* SNAP */ I'm using "g_source_set_can_recurse" because I don't want that re

Re: Gtk+ and multithreating

2007-05-16 Thread Chris Vine
On Wed, 2007-05-16 at 21:38 +0100, Chris Vine wrote: > On Wed, 2007-05-16 at 21:32 +0100, Chris Vine wrote: > > On Wed, 2007-05-16 at 16:44 +0200, Michelle Konzack wrote: > > > Am 2007-05-14 22:22:34, schrieb Chris Vine: > > > > Pass the callbacks representing the events concerned to the main progr

Re: Gtk+ and multithreating

2007-05-16 Thread Chris Vine
On Wed, 2007-05-16 at 21:32 +0100, Chris Vine wrote: > On Wed, 2007-05-16 at 16:44 +0200, Michelle Konzack wrote: > > Am 2007-05-14 22:22:34, schrieb Chris Vine: > > > Pass the callbacks representing the events concerned to the main program > > > loop using g_idle_add(). Make sure the callbacks re

Re: Gtk+ and multithreating

2007-05-16 Thread Chris Vine
On Wed, 2007-05-16 at 16:44 +0200, Michelle Konzack wrote: > Am 2007-05-14 22:22:34, schrieb Chris Vine: > > Pass the callbacks representing the events concerned to the main program > > loop using g_idle_add(). Make sure the callbacks return FALSE. > > g_idle_add() is thread safe, provided that yo

Re: gtk: hide window when minimized

2007-05-16 Thread Hans Petter Jansson
On Tue, 2007-05-15 at 12:55 +0100, Emmanuele Bassi wrote: > On Tue, 2007-05-15 at 13:51 +0200, bronson wrote: > > could anyone tell me how can I hide window, when user minimizes it? > > I tried to handle signal 'window-state-event', but when in that method i > > hide window, > > strange things ha

Re: Bypassing Force Quit

2007-05-16 Thread Brian J. Tarricone
On Wed, 16 May 2007 20:54:34 +0200 David Nečas (Yeti) wrote: >On Wed, May 16, 2007 at 11:28:55AM -0700, Brian J. Tarricone wrote: > >> This is caused by the window manager, not gtk. It thinks the >> application isn't responding because it takes too long to return from >> the delete-event handler.

Re: Bypassing Force Quit

2007-05-16 Thread Yeti
On Wed, May 16, 2007 at 11:28:55AM -0700, Brian J. Tarricone wrote: > > > >I am running on FedoraCore5 and I have an application that when the > >user clicks the "X" in the upper right wants to query for saving any > >changed data. I have currently coded this as a signal handler for the > >delete

Re: Bypassing Force Quit

2007-05-16 Thread Brian J. Tarricone
On Wed, 16 May 2007 14:19:19 -0400 Dan Gruhn wrote: >Greetings, > >I am running on FedoraCore5 and I have an application that when the >user clicks the "X" in the upper right wants to query for saving any >changed data. I have currently coded this as a signal handler for the >delete event which p

Bypassing Force Quit

2007-05-16 Thread Dan Gruhn
Greetings, I am running on FedoraCore5 and I have an application that when the user clicks the "X" in the upper right wants to query for saving any changed data. I have currently coded this as a signal handler for the delete event which puts up a modal dialog box with the questions and waits f

Re: Gtk+ and multithreating

2007-05-16 Thread Michelle Konzack
Am 2007-05-14 22:22:34, schrieb Chris Vine: > Pass the callbacks representing the events concerned to the main program > loop using g_idle_add(). Make sure the callbacks return FALSE. > g_idle_add() is thread safe, provided that you have initialised glib > with g_thread_init(). > > Chris

Re: Gtk+ and multithreating

2007-05-16 Thread Michelle Konzack
Am 2007-05-15 11:28:45, schrieb chabayo: > Hi list,... > > ...im sorry if i missunderstand something... Maybe :-) > Am 14.05.2007 19:53:44 schrieb(en) Michelle Konzack: > >8< > >window_main=create_window_main(); > > > >while ( TRUE ) > >

Re: Gtk+ and multithreating

2007-05-16 Thread Michelle Konzack
Am 2007-05-14 20:56:05, schrieb Cédric Lucantis: > Michael is probably right, but to answer your question there's a good > documentation about that in the GLib manual. See the > sections 'Threads', 'Thread Pools' and 'Asynchronous Queues' under 'Glib Core > Application Support'. If you want to k

Re: How to create a simple multilingual GUI

2007-05-16 Thread Andreas Stricker
Michelle Konzack wrote: > Am 2007-05-14 20:43:42, schrieb David Ne?as (Yeti): >> On Mon, May 14, 2007 at 08:04:09PM +0200, Michelle Konzack wrote: >>> Does >>> setlocale("LC_ALL", "de_DE"); >>> >>> not work? >> It works. Future locale-dependent calls will use the new >> locale. >> >> So if you

Re: Alternative GTK widgets

2007-05-16 Thread Vivien Malerba
On 5/16/07, beginner.c <[EMAIL PROTECTED]> wrote: > > Perhaps we should all put in some links - this would be beneficial for > everybody I think (not all are still active/useful): > > http://dev.investorsidekick.com/begtkextra/ > http://libbit.sf.net/ > http://www.curlyankles.com/ > http://kornelix