GtkTreeModel / GtkTreeStore for big models

2009-01-26 Thread Christoph Schmeding
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

Re: selecting multiple entries from GtkTreeView/GtkTreeModel/GtkTreeStore

2008-01-06 Thread Stefan Kost
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:

selecting multiple entries from GtkTreeView/GtkTreeModel/GtkTreeStore

2008-01-03 Thread Gorshkov
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

Re: Fixing the GtkTreeModel::row-deleted inconsistency

2007-05-16 Thread Fontana Nicola
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

Re: Fixing the GtkTreeModel::row-deleted inconsistency

2007-05-10 Thread Kristian Rietveld
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

Re: Fixing the GtkTreeModel::row-deleted inconsistency

2007-05-10 Thread Federico Mena Quintero
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

Fixing the GtkTreeModel::row-deleted inconsistency

2007-05-09 Thread Kristian Rietveld
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

Re: Fixing the GtkTreeModel::row-deleted inconsistency

2007-05-09 Thread Sven Neumann
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

Catching the row deleted from a GtkTreeModel implementation

2007-02-09 Thread Fontana Nicola
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

RE: Catching the row deleted from a GtkTreeModel implementation

2007-02-09 Thread Suma H.S
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

Re: Catching the row deleted from a GtkTreeModel implementation

2007-02-09 Thread Vivien Malerba
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

Re: Catching the row deleted from a GtkTreeModel implementation

2007-02-09 Thread Fontana Nicola
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,

Re: Catching the row deleted from a GtkTreeModel implementation

2007-02-09 Thread Fontana Nicola
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.

a cross between a GtkTreeModel/Path and GtkList?

2006-05-04 Thread Rick Jones
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

Moving GtkTreeModel to glib?

2006-01-31 Thread Diego Zuccato
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

Re: Problem with GtkTreeModel, simultaneous iterating and append

2003-10-21 Thread Boszormenyi Zoltan
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.

Re: Problem with GtkTreeModel, simultaneous iterating and append

2003-10-21 Thread edscott wilson garcia
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

Problem with GtkTreeModel, simultaneous iterating and append

2003-10-20 Thread Boszormenyi Zoltan
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.

Re: GtkTreeModel

2003-09-02 Thread edscott wilson garcia
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

Re: GtkTreeModel

2003-09-02 Thread Christer Palm
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

Re: GtkTreeModel

2003-09-02 Thread Christer Palm
() 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

GtkTreeModel

2003-08-31 Thread Christer Palm
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

Re: Geting a GtkTreeModel out of GtkTreeViewColumn

2003-07-09 Thread Diego Zuccato
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

Geting a GtkTreeModel out of GtkTreeViewColumn

2003-07-08 Thread Andrej Prsa
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

Re: Geting a GtkTreeModel out of GtkTreeViewColumn

2003-07-08 Thread edscott wilson garcia
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

Re: Trouble with GtkTreeModel co.

2003-07-05 Thread Andrej Prsa
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

Trouble with GtkTreeModel co.

2003-07-04 Thread Andrej Prsa
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

Re: Trouble with GtkTreeModel co.

2003-07-04 Thread edscott wilson garcia
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

Re: Trouble with GtkTreeModel co.

2003-07-04 Thread Andrej Prsa
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

Re: Trouble with GtkTreeModel co.

2003-07-04 Thread Havoc Pennington
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

Re: Trouble with GtkTreeModel co.

2003-07-04 Thread Mariano Suarez-Alvarez
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++;

GTK+2 - GtkTreeModel

2002-02-27 Thread Shane Butler
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

GtkTreeModel Rows ????

2002-02-21 Thread Andreas Scherf
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

GIOChannel + GtkTreeModel length

2002-02-16 Thread Andreas Scherf
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

Re: GIOChannel + GtkTreeModel length

2002-02-16 Thread Olaf Leidinger
. 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

Gtk+-1.3.10 GtkTreeModel/GtkTreeView insertion

2001-10-31 Thread Thomas Amsler
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

Re: Sample code for GTK+ 2.0 GtkTreeModel and GtkTreeView

2001-10-15 Thread Havoc Pennington
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

Re: Sample code for GTK+ 2.0 GtkTreeModel and GtkTreeView

2001-10-15 Thread Rodrigo Moya
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