Re: gtkHScale - scroll wheel behaviour

2009-01-21 Thread Neil
Ignore. But, for those who may be interested, it can be done by connecting to the "scroll-event" signal and calling the gtk_adjustment_set_value() method to position the slider where you want. ___ gtk-app-devel-list mailing list gtk-app-dev

Re: examples/list.c

2009-01-21 Thread James Scott Jr
look for and use the "gtk-demo" application thats normallu apart of the devel package. It contains current GTK examples pre-compiled with source immediately available. Also, consider using "devhelp", another api document viewer for GTK/GLIB and many others. James, On Wed, 2009-01-21 at 21:42 +

Re: g_malloc overhead

2009-01-21 Thread Liam R E Quin
On Wed, 2009-01-21 at 10:21 +0100, BJörn Lindqvist wrote: > 2009/1/21 Liam R E Quin : > > On Mon, 2009-01-19 at 18:43 +0100, BJörn Lindqvist wrote: > >> Actually, a custom allocator could be useful even in the general case. > >> Malloc is a system call and has quite bad performance on certain > >>

Re: examples/list.c

2009-01-21 Thread Tor Lillqvist
I think the programs in the examples folder are quite outdated and probably buggy. Build samples/gtk-demo instead. --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: examples/list.c

2009-01-21 Thread Brian J. Tarricone
Don't use GtkList or GtkTree. They've been deprecated for... I dunno... 7 or 8 years now, and are unmaintained. You should be using GtkTreeView in conjunction with a GtkTreeStore or GtkListStore. -brian Dave Luttinen wrote: 2nd post. I'm just getting warmed up . Compile with suppli

examples/list.c

2009-01-21 Thread Dave Luttinen
2nd post. I'm just getting warmed up . Compile with supplied Makefile to gtk+/gtk+-2.14.6/examples/list.c, run sample application, right click on list, the following is printed: (list:17088): Gtk-CRITICAL **: gtk_list_add: assertion `GTK_IS_LIST_ITEM (widget)' failed (list:17088): Gtk-CRITI

gtk example "tree.c"

2009-01-21 Thread Dave Luttinen
Greetings, First post. Wish me luck. :) I compiled the examples in the gtk library and have been exploring them in order to learn how gtk+ works. Subject: gtk+/gtk+-2.14.6/examples/tree/tree.c (1) suggestion for improvement Based on the declaration of static gchar *itemnames[] = {"Foo"

Re: many buttons, one handler with gtkbuilder

2009-01-21 Thread Tristan Van Berkom
On Wed, Jan 21, 2009 at 1:19 PM, Peter F. Patel-Schneider wrote: [...] > Actually a more general solution would be to allow glade/gtkbuilder to add > properties to widget classes. I don't know whether this would fly. > Glade lets you add properties and save them to the glade file, libglade let y

Re: many buttons, one handler with gtkbuilder

2009-01-21 Thread Peter F. Patel-Schneider
Tristan Van Berkom wrote: On Tue, Jan 20, 2009 at 7:27 AM, Peter F. Patel-Schneider wrote: [...] As I expected, I guess, but it sure would be nice to be able to easily build objects or handlers that have extra information in them in the form of integers or strings. Just being able to initia

Re: Glib::ustring, error while reading an utf-8 encoded file

2009-01-21 Thread Murray Cumming
On Tue, 2009-01-20 at 14:56 +0100, Bastien Dalla Piazza wrote: > > 1: as-is: "First line: plain text." > 1: through Glib::ustring: "First line: plain text." > 2: as-is: "deuxième ligne: des accents ici et là..." You are lucky that that worked. It's unlikely to work with multi-byte UTF-8 character

Re: g_malloc overhead

2009-01-21 Thread Tor Lillqvist
> Malloc is a system call and has quite bad performance on certain > platforms (windows in particular i think). Malloc is not a system call. And please don't make performance assumptions without having benchmark data to back it up. Note that it is not necessarily that clear what is a "system call"