Hi
I am currently developping a model browser for a car crash application.
I am using GTK2.12 to populate all the objects that are in my car crash
model.
For this I used the standard GtkTreeModel / GtkTreeStore design pattern.
When the model is becoming really big (more than 250 000 objets
hi,
Gorshkov schrieb:
I've looked in the docs, and I keep going around and around in circles -
but I can't for the life of me figure out how to set a
TreeView/TreeModel/TreeStore to allow for the selection of multiple entries.
Have a look at GtkTreeSelection:
I've looked in the docs, and I keep going around and around in circles -
but I can't for the life of me figure out how to set a
TreeView/TreeModel/TreeStore to allow for the selection of multiple entries.
I'm pretty sure I'm missing something simple and obvious, but I can't
for the life of me
On Tuesday 15 May 2007 10:37, Kristian Rietveld wrote:
It depends what you mean with remove the row from the model. If that
means unlinking the row from the model's data structures, then there's
not a nice way anymore to retrieve an iterator to access that row. And
if _get_iter() is still
On Wed, May 09, 2007 at 02:01:20PM +0200, Sven Neumann wrote:
Wouldn't it make more sense to introduce a new signal row-delete and
use that instead of changing the semantics of row-deleted? If that
would have been done in the first place, then you wouldn't have said
inconsistency now.
Yes, I
On Thu, 2007-05-10 at 17:04 +0200, Kristian Rietveld wrote:
There are no clear rules for this, actually. Most simple models don't
have a real use for this. The filter and sort models both use this
mechanism to keep track of which levels to cache and monitor. Models
which reference external
documentation, saying that
implementations of GtkTreemodel must emit row-deleted prior to removing
the node.
Currently this behavior is inconsistent in GTK+, as the GtkListStore and
GtkTreeStore still emit row-deleted *after* deleting a node. For the sake
of consistency I would like to modify both
Hi,
On Wed, 2007-05-09 at 14:06 +0200, Kristian Rietveld wrote:
Currently this behavior is inconsistent in GTK+, as the GtkListStore and
GtkTreeStore still emit row-deleted *after* deleting a node. For the sake
of consistency I would like to modify both models to also emit row-deleted
I'm keeping some summary fields of a GtkListStore and I need to update them on
every model change. The problem is while catching the row-deleted signal
the row is yet deleted, so I can't access the row content to update my
summary fields.
How can I do it?
Thanks,
-- Nicola
all the
updations u want and then delete the row from the model.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Fontana Nicola
Sent: Friday, February 09, 2007 2:36 AM
To: gtk-app-devel-list@gnome.org
Subject: Catching the row deleted from a GtkTreeModel
Subject: Catching the row deleted from a GtkTreeModel implementation
I'm keeping some summary fields of a GtkListStore and I need to update them
on
every model change. The problem is while catching the row-deleted signal
the row is yet deleted, so I can't access the row content to update my
On Friday 09 February 2007 11:39, Suma H.S wrote:
how r u deleting the row?
It should be either through some key-press or mouse-click, in either case u
must select the row before selecting.
So...If it is through a key-press, catch the key-press signal and if it is
through a mouse-click,
On Friday 09 February 2007 11:55, Vivien Malerba wrote:
I would suggest a different approach: add your own column to the
GtkListStore which stores your information summary as a GObject (so
you know when that object is destroyed).
This approach seems quite complex but yes, it makes the job.
associated with it.
At first blush, after reading the Gtk+ 2.0 Tree View tutorial:
http://scentric.net/tutorial/treeview-tutorial.html
A GtkTreeModel/View seemed apropriate, but it would seem that the
assumption is that while there is a parent/child relationship like my
netserver/test, the parent
Hello all.
Is $SUBJ possible [maybe in Gtk3]?
It could be really useful to not depend on whole gtk. After all, a
Gtk[Tree|List]Store is a data type like a GList...
At least if it was in glib it could be used in libgda, w/o having to
reinvent the wheel. Then some gnome-db widgets could become
Thanks, but problem solved in the meantime.
edscott wilson garcia rta:
Probably a hack but... if you append the row to a treepath greater than
that of the iterator, no problem. But if you append it to a path less
than that represented by the iterator, the iterator will be knocked off
track.
On Mon, 2003-10-20 at 08:49, Boszormenyi Zoltan wrote:
Hi,
is it possible to append a row to a TreeModel while having
an iterator going through the same model?
Probably a hack but... if you append the row to a treepath greater than
that of the iterator, no problem. But if you append it to a
Hi,
is it possible to append a row to a TreeModel while having
an iterator going through the same model?
I have a code snippet that does just the same,
the second time the code runs
the second gtk_tree_model_get_iter_first() seems to succeed
but gives an invalid iterator, as I get invalid values.
On Sun, 2003-08-31 at 13:27, Christer Palm wrote:
Hi!
A question for all you GtkTreeModel wizards out there;
I have implemented a custom GtkTreeModel to model a directory tree. For
obvious performance reasons, I need to delay the scanning of a
subdirectory until the user actually
Hello Edscott!
edscott wilson garcia wrote:
The tricky part is what happens if the user tries to expand a
subdirectory which doesn't happen to contain any subdirectories. Just
like the Windoze explorer (cough) directory view, I want the expander
for that directory to magically disappear when
() and row_deleted()
functions of GtkTreeModel a bit further, and ironically, while GTK
immediately calls back on my interface to get the new child and node
status when I call these functions, it still messes up and tries to
refer to the deleted node as well as complain about inconsistency
Hi!
A question for all you GtkTreeModel wizards out there;
I have implemented a custom GtkTreeModel to model a directory tree. For
obvious performance reasons, I need to delay the scanning of a
subdirectory until the user actually expands it. Thus, all directories
will initially be assumed
edscott wilson garcia wrote:
I would use g_object_set_data to associate the treemodel pointer with
the treeviewcolumn upon creation of the treeviewcolumn, and then use
g_object_get_data to retrieve the treemodel upon entering
*get_cell_contents(). Although this is based on the least effort
Hello, everyone!
Could anyone please tell me if it's possible to extract the parent
GtkTreeModel out of GtkTreeViewColumn?
Or, if someone could maybe suggest a better way to extract the data from
the selected column in a function where GtkTreeViewColumn *column and int
row are arguments, e.g
El mar, 08-07-2003 a las 11:24, Andrej Prsa escribió:
Hello, everyone!
Could anyone please tell me if it's possible to extract the parent
GtkTreeModel out of GtkTreeViewColumn?
Or, if someone could maybe suggest a better way to extract the data from
the selected column in a function where
Hi!
Yep, I did something similar:
sprintf (path_str, %d, count);
while (gtk_tree_model_get_iter_from_string (GTK_TREE_MODEL (store),
iter, path_str) == TRUE)
{
count++;
sprintf (path_str, %d, count);
}
But it's just so DAMN ugly! ;(
Well, you could at least
Hi, everyone!
I am trying to upgrade from CLists to GtkTreeViews since my transition
from 1.2 to 2.0. I have a spin button that declares how many rows a
GtkTreeModel (with a GtkListStore) should contain; attached to the
changed signal for a spin-button I have a callback that should do this.
While
El vie, 04-07-2003 a las 11:38, Andrej Prsa escribió:
Hi, everyone!
I am trying to upgrade from CLists to GtkTreeViews since my transition
from 1.2 to 2.0. I have a spin button that declares how many rows a
GtkTreeModel (with a GtkListStore) should contain; attached to the
changed signal
Heèllo!
El vie, 04-07-2003 a las 11:38, Andrej Prsa escribió:
Hi, everyone!
I am trying to upgrade from CLists to GtkTreeViews since my
transition from 1.2 to 2.0. I have a spin button that declares how
many rows a GtkTreeModel (with a GtkListStore) should contain;
attached
On Fri, Jul 04, 2003 at 09:42:28PM +0200, Andrej Prsa wrote:
Yep, I did something similar:
sprintf (path_str, %d, count);
while (gtk_tree_model_get_iter_from_string (GTK_TREE_MODEL (store), iter, path_str)
== TRUE)
{
count++;
sprintf (path_str, %d, count);
}
But it's just
On Fri, 4 Jul 2003, Havoc Pennington wrote:
On Fri, Jul 04, 2003 at 09:42:28PM +0200, Andrej Prsa wrote:
Yep, I did something similar:
sprintf (path_str, %d, count);
while (gtk_tree_model_get_iter_from_string (GTK_TREE_MODEL (store), iter,
path_str) == TRUE)
{
count++;
Hi all,
Just wondering if someone could suggest the best way to move a row in a
GtkTreeModel up or down.
Thanks,
Shane
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list
Hello, i want to know how do i get the number of rows
that are inside a GtkTreeModel. The depth of my model is always 1
so im using it instead of a gtkclist. Ok i could count the row number
via gtk_tree_model_iter_next but i think thats not a clear way to go. So
how could i get the number
Hello,
i want to transfer some printing datas via a giochannel to the lpr
system command. Today i'm doing that via pipes and closed stdout ...
How could i do that via the giochannel support ? Any hints ?
2. Is there a method for getting the number of lines from a GtkTreeModel
like the clist
. Is there a method for getting the number of lines from a GtkTreeModel
like the clist-rows element in gtk1.2 ?? Thats because i want to get
the number of lines before catching all row datas via
gtk_tree_model_iter_next(GTK_TREE_MODEL(p_obj-main_list),iter)
So how could i get the number of rows before
I am trying to figure out on how to insert information into a model. My
client application receives CORBA events, strings, which should be
inserted into the gtk model at a certain location relevant to the event
string data.
I don't know how to traverse the model and search for the location where
Thomas Amsler [EMAIL PROTECTED] writes:
Is there any sample code for using GtkTreeModel and GtkTreeView?
Yes, look at gtk-demo and tests/*.c in the GTK distribution.
Most packages install gtk-demo, just try running it.
Havoc
___
gtk-list mailing
On Tue, 2001-10-16 at 00:43, Thomas Amsler wrote:
Is there any sample code for using GtkTreeModel and GtkTreeView?
Thank you.
the other day I started to port bonobo-browser (bonobo-extra module in
GNOME CVS) and I used GtkTreeView. It is my first try at this, so maybe
it's not the correct
38 matches
Mail list logo