Re: GLIB for a webserver

2011-12-15 Thread Marcelo Elias Del Valle
Em 13/12/2011 10:05, jcup...@gmail.com escreveu: That's not the problem, I think. All modern systems will let you allocate at least ~1.5 gb before refusing malloc, no matter how much memory you have or what other processes are doing. The trick is keeping the working set of the processes within

GtkTreeView very slow for large lists

2011-12-15 Thread John Lindgren
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 GtkTreeView. I am attaching a simple test program that creates a

Re: GtkTreeView very slow for large lists

2011-12-15 Thread John Lindgren
On 12/15/2011 09:56 PM, Steve . wrote: John, I can't tell you this /will work/. More over this is how I'd first approach the problem (maybe I'm way off base here too) My initial thoughts are that the user can't see 100,000 items at once so there is no need to expect the widget to handle

Re: GtkTreeView very slow for large lists

2011-12-15 Thread John Lindgren
Steve, Are you looking at the time it takes to show the window or the time before the CPU usage drops to idle? GtkTreeView does a lot of work in the background after the window appears. -- John On 12/15/2011 11:17 PM, Steve . wrote: John, I just ran your test on my thinkpadx61, It only

Merging libstarred into GTK+?

2011-12-15 Thread Mathias Hasselmann
Hi, Just released libstarred 1.0 - http://gitorious.org/libstarred It provides a widget and a cell renderer for doing editable five-star ratings, but also starred favorites. You configure it to your needs. It seems feature complete to me and also seems to work properly. More testing, code

Re: Merging libstarred into GTK+?

2011-12-15 Thread Petr Tomasek
On Thu, Dec 15, 2011 at 01:32:13PM +0100, Mathias Hasselmann wrote: Hi, Just released libstarred 1.0 - http://gitorious.org/libstarred It provides a widget and a cell renderer for doing editable five-star ratings, but also starred favorites. You configure it to your needs. It seems

Re: Merging libstarred into GTK+?

2011-12-15 Thread Emmanuele Bassi
hi; On 15 December 2011 12:32, Mathias Hasselmann mathias.hasselm...@gmx.de wrote: Just released libstarred 1.0 - http://gitorious.org/libstarred It provides a widget and a cell renderer for doing editable five-star ratings, but also starred favorites. You configure it to your needs. looks

Re: Merging libstarred into GTK+?

2011-12-15 Thread Emmanuele Bassi
hi; On 15 December 2011 15:27, Petr Tomasek toma...@etf.cuni.cz wrote: Just a dumb question: are other shapes/objects possible instead of starrs? looking at the source, it seems that the UTF-8 glyph for the star is being used; it would be trivial to allow changing the glyph using a GObject

Re: Merging libstarred into GTK+?

2011-12-15 Thread Mathias Hasselmann
Am Donnerstag, den 15.12.2011, 16:27 +0100 schrieb Petr Tomasek: Just a dumb question: are other shapes/objects possible instead of starrs? There are no dumb questions! You can freely configure the chars to use per property and per style property. You also can use theme icons. The minimum and

Re: Merging libstarred into GTK+?

2011-12-15 Thread Igor Chetverovod
Hi All, I think this widget could be added to GTK+ as a submode of the GtkScale. Igor 2011/12/15, Mathias Hasselmann mathias.hasselm...@gmx.de: Am Donnerstag, den 15.12.2011, 16:27 +0100 schrieb Petr Tomasek: Just a dumb question: are other shapes/objects possible instead of starrs? There

Re: Merging libstarred into GTK+?

2011-12-15 Thread Mathias Hasselmann
Am Freitag, den 16.12.2011, 10:03 +0400 schrieb Igor Chetverovod: Hi All, I think this widget could be added to GTK+ as a submode of the GtkScale. I'd object that, not every tool is a hammer. IMHO adding sub-modes over sub-modes over sub-modes over sub-modes instead of defining task focused

Gtk3: How to invoke gtk_stock_list_ids?

2011-12-15 Thread Hubert Mauchle
This script #!/usr/bin/perl -w use strict; use Gtk3 -init; my @stock_items = Gkt3::Stock-list_ids; produces this error: Can't locate object method list_ids via package Gkt3::Stock (perhaps you forgot to load Gkt3::Stock?) at run_stock.pl line 4. I tried some variants (upper case / lower case)

Re: Gtk3: How to invoke gtk_stock_list_ids?

2011-12-15 Thread Torsten Schoenfeld
On 14.12.2011 20:41, Hubert Mauchle wrote: Can't locate object method list_ids via package Gkt3::Stock (perhaps you forgot to load Gkt3::Stock?) at run_stock.pl line 4. Since there is no GtkStock class, the functions gtk_stock_* are mapped to Gtk3::stock_*. So: my @stock_items =