Re: Poor performance with large ListStore/TreeView

2014-01-13 Thread Jonathan Ballet
On Tue, Jan 14, 2014 at 01:23:51PM +0800, Jonathan Ballet wrote: > Current performances > > > I made a small test case to reproduce the problem (attached to this > email), and here are the results I've got: Of course, I forgot it. It's a

Poor performance with large ListStore/TreeView

2014-01-13 Thread Jonathan Ballet
Hi, I'm developing an application using PyGObject and Python 3 for the Music Player Daemon (https://github.com/multani/sonata/) and I've got several users who are complaining about the lack of performance of the application when loading lot of song into our "Current" playlist (which is a Gtk.TreeV

Using TreeModelFilter with a "modify" function

2013-11-27 Thread Jonathan Ballet
Hi, I'm trying to use the Gtk.TreeModelFilter and its "modify" function and I'm struggling trying to make a simple example. (using PyGObject 3.10.2) I've got something along this at the moment: def modify_func(model, iter, value, column, user_data): print(model, iter, value, column,

Deprecation of CSS's font-size without unit?

2013-06-11 Thread Jonathan Ballet
Hi, since a few weeks, I got this warning while launching my application [1] (using Python 3, PyGObject 3.8.2 and Gtk 3.8.2 on Debian sid): (sonata:6122): Gtk-WARNING **: Theme parsing error: sonata.css:7:17: Not using units is deprecated. Assuming 'px'. So, I implemented a simple fix which co

How to set the user-agent of an HTTP request using Gio?

2013-03-14 Thread Jonathan Ballet
Well, everything is in the title. I'm trying to do asynchronous HTTP requests using Gio, and I would like to set up a custom user-agent for my requests, but I can't find anything related. Thanks! Jonathan ___ python-hackers-list mailing list pytho

Re: Application suddenly stuck at startup

2013-03-06 Thread Jonathan Ballet
Hi Simon, On 03/02/2013 01:37 PM, Simon Feltman wrote: Hey, On Sat, Mar 2, 2013 at 2:54 AM, Jonathan Ballet mailto:j...@multani.info>> wrote: Re: Clarification of GTK/GDK locking pre GTK 4.0 http://thread.gmane.org/gmane.__comp.gnome.gtk+.general/24817/__focus

Re: Application suddenly stuck at startup

2013-03-02 Thread Jonathan Ballet
Hi, On 03/02/2013 04:16 AM, Andrey Gursky wrote: 2013/3/2, Robert Schroll : On Fri, Mar 1, 2013 at 7:14 PM, Andrey Gursky wrote: Hi Robert, Jonathan, 2013/3/1, Robert Schroll : I agree with your reading of the docs. It's things like this that leave me perpetually confused about threadin

Re: Application suddenly stuck at startup

2013-03-01 Thread Jonathan Ballet
On 03/01/2013 03:11 PM, Robert Schroll wrote: On Fri, Mar 1, 2013 at 10:12 AM, Jonathan Ballet wrote: I notice that either: * removing the loop with Gtk.main_iteration(), or... * removing the "Gdk.threads_init()" call doesn't exhibit the problem. I think the problem is

Re: Application suddenly stuck at startup

2013-03-01 Thread Jonathan Ballet
Suddenly yesterday, I couldn't run it anymore: when I start it, the application initialization at the very beginning is alright, Gtk.Appliction "activate" signal is triggered and answered as usual, and then, everything hangs. *Something* get stuck *somewhere* and I can't run the application anymor

Re: Application suddenly stuck at startup

2013-03-01 Thread Jonathan Ballet
x27;m really confused, I can't think of anything I changed between the moment it worked, and the moment it got stuck :( (I swear :'( ) Jonathan > On Thu, Feb 28, 2013 at 8:01 AM, Jonathan Ballet wrote: > > > Hi, > > > > I'm developing^Whacking on a Gtk a

Application suddenly stuck at startup

2013-02-28 Thread Jonathan Ballet
Hi, I'm developing^Whacking on a Gtk application [1] which uses PyGObject since a few months now. It's a client for the Music Player Daemon (mpd). Suddenly yesterday, I couldn't run it anymore: when I start it, the application initialization at the very beginning is alright, Gtk.Appliction "

Re: Getting more informations from Gtk-CRITICAL & co

2013-02-24 Thread Jonathan Ballet
On 02/24/2013 01:36 PM, Christoph Reiter wrote: 2013/2/24 Jonathan Ballet : Hi, Sometimes, I get some Gtk-CRITICAL errors in the console when running applications using PyGObject, such as: (sonata:10324): Gtk-CRITICAL **: gtk_icon_set_render_icon_pixbuf: assertion `icon_set != NULL' f

Getting more informations from Gtk-CRITICAL & co

2013-02-24 Thread Jonathan Ballet
Hi, Sometimes, I get some Gtk-CRITICAL errors in the console when running applications using PyGObject, such as: (sonata:10324): Gtk-CRITICAL **: gtk_icon_set_render_icon_pixbuf: assertion `icon_set != NULL' failed Is there any ways to have more information where this event has been generated f

Re: Improving PyGObject documentation

2013-02-14 Thread Jonathan Ballet
Hi Sebastian, > I'll probably submit some updates then. What would be the process to > submit things? (where, how?) Oh, I didn't see it was on Github. Pull requests should be OK? Jonathan ___ python-hackers-list mailing list python-hackers-list@gnome.

Re: Improving PyGObject documentation

2013-02-14 Thread Jonathan Ballet
On Mon, Feb 11, 2013 at 06:15:55PM +0100, Tomeu Vizoso wrote: > On 10 February 2013 12:25, Jonathan Ballet wrote: > > > Hi, > > > > I'm currently working on an application which uses PyGObject and Gtk 3. > > I used once or twice the informations provided

Re: Improving PyGObject documentation

2013-02-14 Thread Jonathan Ballet
e currently not part of the tutorial, I'd be happy to add them. I'll probably submit some updates then. What would be the process to submit things? (where, how?) Thanks, Jonathan > Best regards, > Sebastian > > Am 10.02.2013 06:25, schrieb Jonathan Ballet: > > Hi,

Improving PyGObject documentation

2013-02-10 Thread Jonathan Ballet
Hi, I'm currently working on an application which uses PyGObject and Gtk 3. I used once or twice the informations provided in http://python-gtk-3-tutorial.readthedocs.org/ but I mostly refers to the official Gtk 3 documentation, which describes the C API. There are some differences between the

Re: Unable to get CellRenderer working correctly

2013-01-10 Thread Jonathan Ballet
On Thu, Jan 10, 2013 at 05:33:14PM +0200, Neil Muller wrote: > > You're not adding your CellRenderer to the column (something the > TreeViewColumn helpfully does automatically). You need something like > > column = Gtk.TreeViewColumn("Value") > renderer = Gtk.CellRendererText() > column.pack_star

Unable to get CellRenderer working correctly

2013-01-10 Thread Jonathan Ballet
Hi, I tried to customize a Gtk.TreeColumn by setting a "cell data function" to convert the value from my model to something more useful for my renderer (converting a path nam to an actual pixbuf). It wasn't working so I tried more or less the same with a much simpler model, but it still doesn't w

Fixing #690329: Can't call a Gtk.UIManager.add_ui_from_string() with non-ASCII characters

2012-12-27 Thread Jonathan Ballet
Hi, so, I'm the reporter of https://bugzilla.gnome.org/show_bug.cgi?id=690329, which I would like to fix for https://github.com/multani/sonata to work with non-ASCII playlists. I gave it a shot today, and found an even simpler test case. Calling the same function with a string which differs only