Re: GtkTreeView very slow for large lists

2011-12-16 Thread Jannis Pohlmann
On Thu, 15 Dec 2011 20:13:03 -0500 John Lindgren wrote: > Hi, > > I am the lead developer of Audacious (a GTK+ based music player). > Lately I have been trying to improve the performance with large > playlists (i.e. on the order of 100,000 entries). The one remaining > problem spot seems to be

Re: Keyboard Key Repeats

2011-08-29 Thread Jannis Pohlmann
On Mon, 29 Aug 2011 06:52:44 -0400 Craig wrote: > Hi All, > > Don't we have a way to program (via gtk) if a key, when pressed, > repeats its signal? Example- the 'a' key, if repeat is on key, I get > aaa, or if repeat is off I get one a. Right now I am using > the System Settings. Con

Re: gtk_table_attach()

2011-08-10 Thread Jannis Pohlmann
On Wed, 10 Aug 2011 15:41:35 +0100 John Emmas wrote: > Using gtk_table_atttach() I can attach widgets to a table. Suppose > the table is in a dialog box. I hide the dialog but next time I > display it, I want some other widget to occupy the same space. There > doesn't seem to be a 'gtk_table_d

Re: Problem with EventBox enter/leave_notify_event and Buttons

2011-07-26 Thread Jannis Pohlmann
Hi, On Tue, 26 Jul 2011 21:07:56 +0200 Valentín wrote: > Hello!! > > I have a problem with enter_notify_event and leave_notify_event. Let > me explain: > > I have an VBox with 5 EventBox widgets, and inside each EventBox I > have a HBox with one Label and 2 Buttons. I connect the signals > ent

Re: gobject construction with parameter

2011-01-31 Thread Jannis Pohlmann
Hey, On Mon, 31 Jan 2011 13:14:30 + James Morris wrote: > Hi, > > I'm trying to modify some existing code which uses gobject so that the > function to create a new object can take a parameter. The existing > code is quite simple, and my modifications simplify it further so I > don't want to

GIO and netlink sockets

2010-12-06 Thread Jannis Pohlmann
Hi everyone, one quick question: does you GIO support netlink sockets? Or more precisely, does GIO support listening to netlink sockets in a way that allows a signal to be emitted or a callback to be called whenever there is incoming data on a netlink socket? I achieved this with Qt by creating a

Re: Cancel construction of GObject

2010-11-27 Thread Jannis Pohlmann
On Sat, 27 Nov 2010 12:14:39 +0100 Jaroslav Šmíd wrote: > Is it possible to "cancel" construction in gobject-derived class? > > Lets say I have GMyObject derived from GObject. In its init function > I need to spawn a thread. When that fails, I would like to cancel > construction of the object (

Re: Problem with GSource and polling

2010-11-20 Thread Jannis Pohlmann
 I'm sorry but what `kernel module' you are talkin' about?, > > is it the application's module? > > > >        Ardhan, > > > > > > --- jan...@xfce.org wrote: > > > > From: Jannis Pohlmann > > To: gtk-app-devel-list@gnome.org &

Re: newbie question about g_object unref()

2010-11-18 Thread Jannis Pohlmann
On Thu, 18 Nov 2010 22:11:45 + N James Bridge wrote: > It seems that g_object_unref (ptr) doesn't set ptr to NULL when it > frees the allocated memory. Have I got something wrong here? Do I > have to do it explicitly? You can do it explicitely by using g_object_add_weak_pointer (your_obje

Re: Problem with GSource and polling

2010-11-17 Thread Jannis Pohlmann
Hi again, On Thu, 18 Nov 2010 02:26:20 +0100 Jannis Pohlmann wrote: > Hi folks, > > I have a question about using GSource in combinaton with GPollFD. Nevermind, I forgot to add poll_wait() in the poll() handler of the kernel module that created the file descriptor. Now with that a

Problem with GSource and polling

2010-11-17 Thread Jannis Pohlmann
Hi folks, I have a question about using GSource in combinaton with GPollFD. In a simple application I wrote today, I am creating a simple GSource, add GPollFD to it with g_source_add_poll() and then I attach the source to the default main context using g_source_attach(). The prepare function of