Abount the missing gtk_tree_model_iter_prev()

2007-05-08 Thread Gabriele Greco
Is this the optimal way to implement a bi-directional search on a liststore or there is something better that can be done? while(valid) { gchar *body; gtk_tree_model_get(m_model, it, Body, body, -1); if ( (cs strstr(body,

Re: Some comments about GVFS

2007-05-08 Thread Hans Petter Jansson
On Tue, 2007-05-08 at 09:30 +0200, Alexander Larsson wrote: On Mon, 2007-05-07 at 14:08 -0500, Hans Petter Jansson wrote: In Flow, I keep a GMainContext associated with each GThread. The API user can set his own GMainContext for each thread, but for simplicity it can only be set once,

Re: shortcuts for g_type_register_static_simple

2007-05-08 Thread Stefan Kost
Hi, I was reffering to the idea Matthis Clasen mentioned in this thread: http://mail.gnome.org/archives/gtk-devel-list/2006-April/msg00169.html I look at my own application. Refdbg tells me that I use 162 different types. So the overhead seems to be acceptable. Running oprofile shows these

Newbie needs help: gtk_entry's stopped accepting key stroke entires

2007-05-08 Thread crazyluke
I developed a GTK+ app about 4 years ago that worked well. It was probably built under GTK ~2.4 or 2.6. I just setup the latest version of Dev-Cpp compiler with GTK 2.10. I recompiled the old source files. Everything works fine except for one MAJOR thing: All of the gtk_entry textbox widgets will

Re: shortcuts for g_type_register_static_simple

2007-05-08 Thread Tim Janik
On Tue, 8 May 2007, Stefan Kost wrote: Hi, I was reffering to the idea Matthis Clasen mentioned in this thread: http://mail.gnome.org/archives/gtk-devel-list/2006-April/msg00169.html I look at my own application. Refdbg tells me that I use 162 different types. So the overhead seems to be

Re: shortcuts for g_type_register_static_simple

2007-05-08 Thread Stefan Kost
hi, I just converted one of my classes to use G_DEFINE_TYPE to benefit from less typing and from the less relocations. When trying it I was suprised to see that it actally adds two more relocations: $ LD_DEBUG=statistics ./test-before 30264: number of relocations:

Re: Some comments about GVFS

2007-05-08 Thread Alexander Larsson
On Tue, 2007-05-08 at 11:19 +0200, Benjamin Otte wrote: (short reply here, so you can continue your interesting discussion, I'll answer in more detail when I'm back from UDS) On 5/8/07, Alexander Larsson [EMAIL PROTECTED] wrote: On Tue, 2007-05-08 at 03:33 -0500, Hans Petter Jansson wrote:

Re: shortcuts for g_type_register_static_simple

2007-05-08 Thread Tim Janik
On Tue, 8 May 2007, Stefan Kost wrote: Sorry for the spam, but readelf thinks otherwise: $ readelf -d ../lib/test-before.so | grep REL 0x0002 (PLTRELSZ) 3520 (bytes) 0x0014 (PLTREL) REL 0x0017 (JMPREL) 0x6dd0