Re: Show sub-range in GtkTreeView
- From: Russell Shaw <rjshaw netspace net au>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Show sub-range in GtkTreeView
- Date: Sat, 12 Jun 2004 23:28:56 +1000
Tim Müller wrote:
On Saturday 12 June 2004 13:52, Russell Shaw wrote:
Use GtkModelFilter with your list store as child mode, for example.
I assume that's GtkTreeModelFilter, used with
GtkTreeModelFilterVisibleFunc(). Seems i need to recompile a new gtk;)
yes, I meant GtkTreeModelFilter, sorry. It's new in Gtk-2.4, but if you want
to use it in an app without making Gtk-2.4 a requirement for your app, you
can easily take the code and change the name space and a couple of
GObject-2.4 things here and there, and just ship it with your app (if the
licenses are compatible, that is).
If you grab the tarball that includes the code examples from
http://scentric.net/tutorial/treeview-tutorial.html
you'll find such a stand-alone backwards-compatible filter model in
examples/tree-model-filter/ (It's the one shipped with Gtk-2.4, but slightly
modified to work with previous Gtk versions).
Hi,
Thanks, but i'm in no state to release any apps yet, so i tried
recompiling gtk starting with recompiling glib from cvs, using
http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html
However, i get:
In file included from ../glib/giochannel.h:31,
from glib.h:45,
from garray.c:35:
../glib/gmain.h:35: error: parse error before "pid"
../glib/gmain.h:251: error: parse error before "pid"
../glib/gmain.h:296: error: parse error before "GPid"
../glib/gmain.h:300: error: parse error before "pid"
In file included from glib.h:63,
from garray.c:35:
../glib/gspawn.h:80: error: parse error before "GPid"
../glib/gspawn.h:93: error: parse error before "GPid"
../glib/gspawn.h:123: error: parse error before "pid"
make[3]: *** [garray.lo] Error 1
make[3]: Leaving directory `/home/russell/SRC/glib/glib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/russell/SRC/glib/glib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/russell/SRC/glib'
make: *** [all] Error 2
~/SRC/glib/glib grep GPid *.h
gmain.h:typedef void (*GChildWatchFunc) (GPid pid,
gmain.h:GSource *g_child_watch_source_new (GPid pid);
gmain.h: GPid pid,
gmain.h:guint g_child_watch_add (GPid pid,
gspawn.h: GPid *child_pid,
gspawn.h: GPid *child_pid,
gspawn.h:void g_spawn_close_pid (GPid pid);
Where is GPid defined?
Is it usual for a cvs snapshot to be uncompileable sometimes?
If so, i'll get everything from ftp://ftp.gtk.org/pub/gtk/v2.2/
(gcc-3.3 on debian)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]