Re: slow gtk.label drawing

2011-07-25 Thread Vlad Volodin
Hello Yeti, It seems that it would be better to slightly optimize the code and do not create many widgets at once. You know how Google Reader works: it loads RSS feeds by small portions. I think that you can do a similar approach in your application. Thanks, Vest _

Re: Custom font for application

2011-07-25 Thread Richard Shann
I sorted this out yesterday (see denemo-devel mailing list), what you need I suspect is along the lines of this: GtkSettings *settings = gtk_settings_get_default( ); gtk_settings_set_string_property(settings, "gtk-font-name" , "FreeSerif 12", "denemo"); // Note: GTK complains that the font does

Re: Gtk::FileChooserButton

2011-07-25 Thread John Stebbins
On 05/01/2011 04:15 AM, John Emmas wrote: ** GTK+ (almost) exonerated ** I've spent quite a bit of time delving into the problems I encountered with Gtk::FileChooserButton. I started by writing a minimal app using a main window with a child button. The button launched a modal dialog box whic

Re: slow gtk.label drawing

2011-07-25 Thread David Nečas
On Mon, Jul 25, 2011 at 04:50:09PM +0200, Pavol Klačanský wrote: > Hi, I have written simple rss reader and I tested it with 10k items in feed. > > Xml and parsing takes while (in second.) but drawing takes minutes Creating tens of thousands of widgets that mostly will not be displayed indeed take

slow gtk.label drawing

2011-07-25 Thread Pavol Klačanský
Hi, I have written simple rss reader and I tested it with 10k items in feed. Xml and parsing takes while (in second.) but drawing takes minutes Part taking care of drawing public void set_details(Feed feed, Client client) { title.set_markup("" + feed.title + ""); icon.set_from

Re: Custom font for application

2011-07-25 Thread Richard Shann
On Mon, 2011-07-25 at 12:00 +, gtk-app-devel-list-requ...@gnome.org wrote: > > Does anyone here know how I can create and load a custom font for my > application from the source code? What method or methods do I need to > invoke to load the font that I can render? What rendering methods do I >