GtkTreeView. How to hide or show an individual cell in a row

2019-04-06 Thread Osmo Antero via gtk-app-devel-list
Hello, I am making a GTK3 application with GtkTreeView listing. The simple listing will show country flags + names and number of radio-channels (to later choose from). I want to show a button or icon in a column (in the cell) when the row has been selected. Otherwise the cell should be empty

Re: GtkTreeView: how to get the cell with current focus?

2018-07-12 Thread Reuben Rissler
e know. Cheers, Lars Am 12.07.2018 um 18:11 schrieb Lars Paulsen: Hello All, I got a little problem with a GtkTreeView and with getting the cell which actually has got the focus: From the API documentation it seems like gtk_tree_view_get_cursor(GTK_TREE_VIEW(tree), &path, &focus_col

Re: GtkTreeView: how to get the cell with current focus?

2018-07-12 Thread Lars Paulsen
know. Cheers, Lars Am 12.07.2018 um 18:11 schrieb Lars Paulsen: Hello All, I got a little problem with a GtkTreeView and with getting the cell which actually has got the focus: From the API documentation it seems like gtk_tree_view_get_cursor(GTK_TREE_VIEW(tree), &path, &focus_column)

GtkTreeView: how to get the cell with current focus?

2018-07-12 Thread Lars Paulsen
Hello All, I got a little problem with a GtkTreeView and with getting the cell which actually has got the focus: From the API documentation it seems like gtk_tree_view_get_cursor(GTK_TREE_VIEW(tree), &path, &focus_column); is doing the job. I can handle the path, it gives me the r

GtkTreeView: Prevent drag and drop to a nested level

2018-06-15 Thread Lars Paulsen
Hi All, I am using a GTkTreeView with automatic DND enabled and I wonder if there is a simple way to prevent/suppress that a toplevel item can be dragged to a child position of another toplevel item. What I did so far was catch the "row-inserted" signal, check if the item has

Re: background color for GtkTreeView

2018-03-10 Thread Yuri Khan
On Sat, Mar 10, 2018 at 10:40 PM, wrote: > that does seem to do the trick. Seems rather unfortunate though to set > it by manually. I was hoping there's at least a predefined theme color > variable anywhere to put in here. You might try using the :not CSS selector. The documentation mentions it

Re: background color for GtkTreeView

2018-03-10 Thread codemusings
at 14:26 +0100, codemusi...@gmail.com wrote: > > Hi there, > > > > I'm trying to change the background-color of a GtkTreeView by > > adding > > a > > css provider with the following style set: > > > > treeview { background-color: #fffa

Re: background color for GtkTreeView

2018-03-10 Thread Stefan Salewski
On Sat, 2018-03-10 at 14:26 +0100, codemusi...@gmail.com wrote: > Hi there, > > I'm trying to change the background-color of a GtkTreeView by adding > a > css provider with the following style set: > > treeview { background-color: #fffae1; } > > Unfortunat

Re: background color for GtkTreeView

2018-03-10 Thread Luca Bacci
try with treeview:selected { background-color: white; } Luca 2018-03-10 14:26 GMT+01:00 : > Hi there, > > I'm trying to change the background-color of a GtkTreeView by adding a > css provider with the following style set: > > treeview { background-color: #fffae1; }

background color for GtkTreeView

2018-03-10 Thread codemusings
Hi there, I'm trying to change the background-color of a GtkTreeView by adding a css provider with the following style set: treeview { background-color: #fffae1; } Unfortunately this has the effect that the row selection color changes from the default blue to this particular backg

Re: Scrolling a GtkTreeview cell

2018-01-25 Thread Eric Cashon via gtk-app-devel-list
Hi Kian, A list box is more flexible for allowing different widgets but the performance might not be so good if you have a lot of rows. Don't have the numbers to show that though. You can put your individual widgets into a scrolled window if you want. The scroll bars will show if the conte

Re: Scrolling a GtkTreeview cell

2018-01-25 Thread Yuri Khan
On Thu, Jan 25, 2018 at 4:40 PM, Kian Karas wrote: >> Part Number 71-00 >> Version47.11D >> Build Number kk-5910 >> NATID 8988 1697 >> 0013 > > If a row is to span multiple lines, it might improve read

Re: Scrolling a GtkTreeview cell

2018-01-25 Thread Kian Karas
On Thu, Jan 25, 2018 at 10:13 AM, Yuri Khan wrote: > On Thu, Jan 25, 2018 at 3:18 PM, Kian Karas > wrote: > > > It's an industrial device with a 4.5" screen. The only input method is a > > keypad. The keypad has up/down/left/right/enter/back buttons (and some > other > > domain specific keys). T

Re: Scrolling a GtkTreeview cell

2018-01-25 Thread Kian Karas
On Thu, Jan 25, 2018 at 10:13 AM, Yuri Khan wrote: > On Thu, Jan 25, 2018 at 3:18 PM, Kian Karas > wrote: > > > It's an industrial device with a 4.5" screen. The only input method is a > > keypad. The keypad has up/down/left/right/enter/back buttons (and some > other > > domain specific keys). T

Re: Scrolling a GtkTreeview cell

2018-01-25 Thread Yuri Khan
On Thu, Jan 25, 2018 at 3:18 PM, Kian Karas wrote: > It's an industrial device with a 4.5" screen. The only input method is a > keypad. The keypad has up/down/left/right/enter/back buttons (and some other > domain specific keys). The before mentioned keys are used to navigate a menu > system. > >

Re: Scrolling a GtkTreeview cell

2018-01-25 Thread Kian Karas
You're right, I tried to keep the information level low in case there was an actual solution to what I hoped was possible. In lack of that, here is a more thorough description of the problem domain. It's an industrial device with a 4.5" screen. The only input method is a keypad. The keypad has up/

Re: Scrolling a GtkTreeview cell

2018-01-24 Thread Yuri Khan
On Mon, Jan 22, 2018 at 6:03 PM, Kian Karas wrote: > I have a GtkTreeview with size constraints, which causes the text of one > particular column in one particular row not to fit into its cell. > > Is there a way for the user to scroll the content of a specific cell (i.e. > a spe

Re: Scrolling a GtkTreeview cell

2018-01-24 Thread Kian Karas
Hi Eric I was not aware of the list box. It looks more flexible than the tree view, and might be what i need. However, then my problem would be to scroll some other widget (other than a GtkTreeview cell), without adding a scroll bar. The only space I have is within the cell of the table. Using

Re: Scrolling a GtkTreeview cell

2018-01-24 Thread Eric Cashon via gtk-app-devel-list
Hi Kian, Have you tried a GtkListBox for this? You can probably setup a scrolling window in a row in a listbox. https://blog.gtk.org/2017/06/01/drag-and-drop-in-lists-revisited/ Eric ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org ht

Re: Scrolling a GtkTreeview cell

2018-01-24 Thread Kian Karas
On Wed, Jan 24, 2018 at 12:42 PM, Lucky B.C wrote: > There's no supporting for scrolling one cell! But If I'm not wrong, the > string value you put in the right column is a very long text, isn't it? And > you want a solution for seeing the text in the limited view, don't you? > Yes, that's exactl

Re: Scrolling a GtkTreeview cell

2018-01-24 Thread Lucky B.C
" screen, a few navigation > buttons, and no mouse. > > On Wed, Jan 24, 2018 at 11:15 AM, infirit wrote: > > > Op 01/22/2018 om 12:03 PM schreef Kian Karas: > > > I have a GtkTreeview with size constraints, which causes the text of > one > > > particular col

Re: Scrolling a GtkTreeview cell

2018-01-24 Thread Kian Karas
018 at 11:15 AM, infirit wrote: > Op 01/22/2018 om 12:03 PM schreef Kian Karas: > > I have a GtkTreeview with size constraints, which causes the text of one > > particular column in one particular row not to fit into its cell. > > If I remember correctly a GtkTreeView is scrolla

Re: Scrolling a GtkTreeview cell

2018-01-24 Thread infirit
Op 01/22/2018 om 12:03 PM schreef Kian Karas: > I have a GtkTreeview with size constraints, which causes the text of one > particular column in one particular row not to fit into its cell. If I remember correctly a GtkTreeView is scrollable so it will add scrollbars when it has grown large

Re: Scrolling a GtkTreeview cell

2018-01-24 Thread Kian Karas
ote: > Hi, can you show a demo about the problem? > > On Mon, Jan 22, 2018 at 6:03 PM, Kian Karas > wrote: > > Hi, > > > > I have a GtkTreeview with size constraints, which causes the text of one > > particular column in one particular row not to fit into its

Re: Scrolling a GtkTreeview cell

2018-01-23 Thread Lucky B.C
Hi, can you show a demo about the problem? On Mon, Jan 22, 2018 at 6:03 PM, Kian Karas wrote: > Hi, > > I have a GtkTreeview with size constraints, which causes the text of one > particular column in one particular row not to fit into its cell. > > Is there a way for the

Scrolling a GtkTreeview cell

2018-01-22 Thread Kian Karas
Hi, I have a GtkTreeview with size constraints, which causes the text of one particular column in one particular row not to fit into its cell. Is there a way for the user to scroll the content of a specific cell (i.e. a specific column in the current highlighted row) - e.g. with the keyboard

Re: Mouse leave on a row of GtkTreeView

2017-09-19 Thread Eric Cashon via gtk-app-devel-list
eturn FALSE; } -Original Message- From: pspgen To: cecashon Sent: Tue, Sep 19, 2017 11:36 am Subject: Re: Mouse leave on a row of GtkTreeView - Цитат от cecas...@aol.com, на 19.09.2017 в 20:38 - Could you use a GtkListBox? With a list box you can add a widget

Re: Mouse leave on a row of GtkTreeView

2017-09-19 Thread Eric Cashon via gtk-app-devel-list
Could you use a GtkListBox? With a list box you can add a widget to the row and connect the "enter-notify-event" and "leave-notify-event" signals. There is example code for a list box at https://blog.gtk.org/2017/06/01/drag-and-drop-in-lists-revisited/ It is drag and drop but you could chang

Mouse leave on a row of GtkTreeView

2017-09-19 Thread pspgen
How can I detect when the mouse cursor leaves a GtkTreeView row ? Note that the signal "cursor-changed" is not what I am looking for, as it gets emitted as if it is a mouse enter (mouseover) event and I need it to be triggered when the mouse has just left the row. However within "

GtkTreeView and selected column

2016-09-26 Thread Franco Broi
Hi I have a bunch of toggles in a TreeView with their state bound to entries in a model, what's the best way to find out which model column to modify in my toggled callback? I'm passing the TreeViewColumn in the userdata but can't find a way to get back the attribute that binds the toggle state t

gtktreeview: Why does gtktreeview retrieve all columns although 99% are not visible? (psppire)

2015-12-14 Thread Friedrich Beckmann
Hi, i currently work on psppire http://savannah.gnu.org/projects/pspp/ and want to use gtktreeview for a large number of columns (2000) and rows (1). I use only a kind of fake tree model while the actual rendering and data retrieval is done via gtk_tree_view_column_set_cell_data_func. I

GtkTreeView - Conflict between one click editing and selection

2015-12-09 Thread Friedrich Beckmann
Hi, i am working on an application which uses GtkTreeView. I tried to start editing the cells with one click by setting the focus of the cell in the row-activated callback like this: static void on_row_activated (GtkTreeView *treeview, GtkTreePath *path

RES: gtktreeview problem.

2015-03-23 Thread Ubirajara Marques da Cruz
example) I need to pick each material in a liststore with dnd and copy to a place into another gtktreeview with treestore I will start my construction place first the basement, put walls, put ceiling and others. Into gtk program I will give me a list of material inside a liststore and a treestore that

Re: gtktreeview problem.

2015-03-23 Thread John Coppens
On Mon, 23 Mar 2015 12:50:28 + Ubirajara Marques da Cruz wrote: > Into ON_DRAG_RECEIVED signal when I copy selection data with memcpy I have a > surprise. Gtk selection has the same structure but data is empty. And only > one data is copied and it is wrong. It is a genum. Maybe this tutori

gtktreeview problem.

2015-03-23 Thread Ubirajara Marques da Cruz
To gtk team, I´m developing an app with drag and drop operation between 2 treeviews and I have had some problems with dnd mechanism. I do a G_VALUE_ARRAY to hold the following selected datas. I was fulfill in signal ON_DRAG_GET. Tabela is my gvaluearray and datas I wanna hold are, number of c

Re: gtktreeview: highlighting a cell

2015-01-06 Thread Stefan Sauer
On 12/12/2014 06:57 PM, Allin Cottrell wrote: > I'm using GtkTreeView to implement a simple spreadsheet. > > With GTK 2, if use gtk_tree_view_set_cursor() to place keyboard focus > on a given cell, with the last argument set to FALSE so that editing > mode is not entered

gtktreeview: highlighting a cell

2014-12-12 Thread Allin Cottrell
I'm using GtkTreeView to implement a simple spreadsheet. With GTK 2, if use gtk_tree_view_set_cursor() to place keyboard focus on a given cell, with the last argument set to FALSE so that editing mode is not entered immediately, I get a visual indication of which cell is focused. It

Re: GtkTreeView isn't updating when GtkListStore appended and set

2014-01-07 Thread Colomban Wendling
Le 07/01/2014 22:48, Jordan H. a écrit : > > Man, sorry, but I guess I'm still not getting this. > > I've added a GtkTreeViewColumn and GtkCellRenderer to the GtkTreeView: > > > Button Label > True > True > > > > Actually the patch s

Re: GtkTreeView isn't updating when GtkListStore appended and set

2014-01-06 Thread Colomban Wendling
Le 06/01/2014 22:10, jorda...@fastmail.fm a écrit : > I suppose an attachment would be helpful (weird that it didn't send). OK, better now indeed. So, your problem is that you don't add columns to your tree view. A TreeView [1] displays TreeViewColumns [2], which itself contain CellRenderer [3].

Re: GtkTreeView isn't updating when GtkListStore appended and set

2014-01-06 Thread jordannh
tore_button_list") > > is assigned the GtkTreeView ("treeview_button_order"). > > Looks like the attachment is missing. > > > The GtkTreeView doesn't seem to reflect the changes made to the > > GtkListStore. > > No idea if it could be this, bu

Re: GtkTreeView isn't updating when GtkListStore appended and set

2014-01-06 Thread Colomban Wendling
Hi, Le 06/01/2014 17:26, Jordan H. a écrit : > Attached is the Glade file. The GtkListStore ("liststore_button_list") > is assigned the GtkTreeView ("treeview_button_order"). Looks like the attachment is missing. > The GtkTreeView doesn't seem to reflect the

Re: GtkTreeView isn't updating when GtkListStore appended and set

2014-01-06 Thread Jordan H.
Thank you. I'll look into templates. Attached is the Glade file. The GtkListStore ("liststore_button_list") is assigned the GtkTreeView ("treeview_button_order"). The GtkTreeView doesn't seem to reflect the changes made to the GtkListStore. I iterated through the

Re: GtkTreeView isn't updating when GtkListStore appended and set

2014-01-05 Thread Tristan Van Berkom
On Sat, 2014-01-04 at 23:46 -0600, Michael Cronenworth wrote: > On 01/04/2014 05:21 PM, Jordan H. wrote: > > In Glade I've defined column "0" in the list store as a "gchararray" > > cell. I even tried forcing the assignment of GtkListStore to GtkTreeView &

Re: GtkTreeView isn't updating when GtkListStore appended and set

2014-01-04 Thread Michael Cronenworth
On 01/04/2014 05:21 PM, Jordan H. wrote: In Glade I've defined column "0" in the list store as a "gchararray" cell. I even tried forcing the assignment of GtkListStore to GtkTreeView (knowing full well I wouldn't need to) to no avail. I don't get any errors,

GtkTreeView isn't updating when GtkListStore appended and set

2014-01-04 Thread Jordan H.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 I've defined a GtkTreeView in Glade with a GtkListStre as the store. I'm trying to add data to the list on a button click. Here's the function: void update_list(){ GtkListStore *list_store; GtkTreeIter iter;

Re: freely re sizable GtkTreeView columns

2013-12-09 Thread Chris Angelico
On Mon, Dec 9, 2013 at 9:43 PM, Max Linke wrote: > pack option was the right hint. I just saw that the expanding option is > hidden there in glade. After setting expand to yes for the > ScrolledWindow everything works like I expect it to. > > Thanks for the quick help Excellent! Glad to be of ser

Re: freely re sizable GtkTreeView columns

2013-12-09 Thread Max Linke
On Mon, 2013-12-09 at 20:49 +1100, Chris Angelico wrote: > On Mon, Dec 9, 2013 at 7:45 PM, Max Linke wrote: > > Thanks that fixed it. So far Gtk looks nice and easier then I > > expected :) > > I quite like GTK, too. Most of my GUI work is in Pike, which is > semantically similar to Python (which

Re: freely re sizable GtkTreeView columns

2013-12-09 Thread Chris Angelico
On Mon, Dec 9, 2013 at 7:45 PM, Max Linke wrote: > Thanks that fixed it. So far Gtk looks nice and easier then I > expected :) I quite like GTK, too. Most of my GUI work is in Pike, which is semantically similar to Python (which I think is what you're using?). GTK does a fine job of everything I

Re: freely re sizable GtkTreeView columns

2013-12-09 Thread Max Linke
On Sun, 2013-12-08 at 15:09 -0800, Andrew Potter wrote: > The cell renderer should be or be derived from a GtkCellRendererText. > The GtkCellRendererText has an ellipsize property that you can set. If > the text isn't allowed to be ellipsized, then the minimum size of the > column is going to be t

Re: freely re sizable GtkTreeView columns

2013-12-08 Thread Andrew Potter
On Sun, Dec 8, 2013 at 2:45 PM, Max Linke wrote: > I'm writing my first GTK app with pygobject. I'm struggling with the > resizing of treeview columns. The data in one column are quite long > strings (filepaths) and I want to be able to dynamically resize the > column to something smaller then th

freely re sizable GtkTreeView columns

2013-12-08 Thread Max Linke
Hi I'm writing my first GTK app with pygobject. I'm struggling with the resizing of treeview columns. The data in one column are quite long strings (filepaths) and I want to be able to dynamically resize the column to something smaller then the length of the strings. I'm creating the columns lik

Re: GtkTreeView doesn't refresh

2013-11-27 Thread Jarosław Sobieszek
On Wed, 27 Nov 2013 14:19:37 +0100, Colomban Wendling wrote: > Le 27/11/2013 12:57, Jarosław Sobieszek a écrit : >> Hello, >> >> I'm trying to dynamically modify list based on some action. Program below >> should add 3 rows at the top and 3 rows at the bottom of the list for >> every >> click of

Re: GtkTreeView doesn't refresh

2013-11-27 Thread Colomban Wendling
Le 27/11/2013 12:57, Jarosław Sobieszek a écrit : > Hello, > > I'm trying to dynamically modify list based on some action. Program below > should add 3 rows at the top and 3 rows at the bottom of the list for every > click of the button. For some reason it doesn't work - I'm seeing partial > updat

Re: GtkTreeView doesn't refresh

2013-11-27 Thread Rafał Mużyło
missing something or is it a bug in gtk3 (gtk3-3.8.6 under Fedora 19)? > You're missing a trivial thing - GtkTreeView is scrollable. After clicking the button, simply scroll the widget either up or down. ___ gtk-app-devel-list mailing list gtk-

GtkTreeView doesn't refresh

2013-11-27 Thread Jarosław Sobieszek
Hello, I'm trying to dynamically modify list based on some action. Program below should add 3 rows at the top and 3 rows at the bottom of the list for every click of the button. For some reason it doesn't work - I'm seeing partial updates with random amount of data (only 2 top rows on first click,

Per-row vertical spacing in GtkTreeView

2013-06-16 Thread Avi
How does one obtain fine-grained control over the vertical spacing between rows in a GtkTreeViewColumn? Obviously, there is the vertical-separator style property for the easy case, when all rows should have the same vertical spacing. But I am unsure how to handle the case of per-row vertical

Re: Change background color in GtkTreeView

2012-11-29 Thread Michael Cronenworth
Tomasz Jankowski wrote: > I'm working on UI for embedded system using GTK+ 2.24. I want to > change GtkTreeView background (area behind rows, which is by default white) > to match default color of window area (grey by default). > I retrieved GtkStyle associated with GtkWindow an

Change background color in GtkTreeView

2012-11-29 Thread Tomasz Jankowski
Hello, I'm working on UI for embedded system using GTK+ 2.24. I want to change GtkTreeView background (area behind rows, which is by default white) to match default color of window area (grey by default). I retrieved GtkStyle associated with GtkWindow and looked for this particular tint of

improvements in gtktreeview

2012-09-26 Thread Rudra Banerjee
Dear friends, below I have copied the way I am creating a treeview. Maybe, you may find some part is not necessary, but still I put them to show you how I am doing the things. I need help in few things: 1) for my typical testing file, which has ~150 entry(to be parsed by parse.sh, create file "

GtkTreeView Editable cells?

2012-07-17 Thread Ferdinand Ramirez
I have a GtkTreeView and I am able to double click and trigger my function on double clicking. Now if I add a renderer and make it editable, double clicking always goes to edit mode for the cell. Instead, I want to edit only when I single click on an already selected cell and my double click

Accessible text in a GtkTreeView?

2012-06-29 Thread Dylan McCall
I'm working with a tree view widget which needs to be nice and accessible. Here is a picture: http://ubuntuone.com/1pP5oWD1HCIUQ4OqptHZfw The Install column has three cell renderers, and many of the columns have content that would be unclear coming from a screen reader. Currently, without any speci

gtk3 css GtkTreeView column header color

2012-01-20 Thread john beritz
I'm using Gtk+-3.2.3 on Ubuntu natty. How can I set the column header color for a list in a GtkTreeView with css? ( Header is visible ) I can set row color with: GtkTreeView row { background-color: red; } So I tried this for the column header which doesn't work: GtkTreeView col

GtkTreeView row color with CSS

2012-01-17 Thread john beritz
How can I change the unselected row color in a GtkTreeView using CSS in Gtk3? I've tried even-row-color, -GtkWidget-even-row-color and GtkTreeView row:nth-child(even) /* COMPILE WITH: gcc -Wall -o tree1 `pkg-config --cflags --libs gtk+-3.0` tree1.c */ #include enum { LIST_ITE

Some questions about GtkTreeView

2011-12-23 Thread Oleg Ivanenko
Hi, all! I trying to make small gtk-application with gtk2-perl( http://bazaar.launchpad.net/~oivanenko/photostock-helper/db-gladeless/files) and now I have some questions about GtkTreeView behavior: 1. How I can select range of arbitrary cells, but not rows in TreeView? Can I even do this? What

Re: GtkTreeView very slow for large lists

2011-12-16 Thread Tristan Van Berkom
9s >    user    0m29.168s >    sys    0m0.023s GtkTreeView should definitely be usable with millions of rows in the data model. Remember that "should" is a word with many implications, things that GtkTreeView should be doing include avoiding requesting the size for every row in the mode

Re: GtkTreeView very slow for large lists

2011-12-16 Thread John Lindgren
t's linked to the tree view slows > things down quite a bit. > > - Jannis Yes, we follow this practice. As a "jcupitt" pointed out, what I was missing was to use "fixed height mode" for the GtkTreeView so that it doesn't tr

Re: GtkTreeView very slow for large lists

2011-12-16 Thread John Lindgren
On 12/16/2011 05:54 AM, jcup...@gmail.com wrote: > ... > > I did notice that you forgot to put the treeview into fixed-height mode. > > Normally, treeview lets rows vary in height (so you can change font > between rows, for example). To make this work, treeview has a idle > task which scans the ent

Re: GtkTreeView very slow for large lists

2011-12-16 Thread John Lindgren
Steve, I use the "time" shell command and wait for my CPU meter to drop back to idle before quitting the test program, giving something like this: time ./list-test real0m31.719s user0m29.168s sys0m0.023s -- John On 12/16/2011 12:24 AM, Steve . wrote: > John, > > Tim

Re: GtkTreeView very slow for large lists

2011-12-16 Thread jcupitt
On 16 December 2011 10:36, wrote: > 2011/12/16 John Lindgren : >> Lately I have been trying to improve the performance with large >> playlists (i.e. on the order of 100,000 entries).  The one remaining >> problem spot seems to be GtkTreeView.  I am attaching a simple test &g

Re: GtkTreeView very slow for large lists

2011-12-16 Thread Jannis Pohlmann
blem spot seems to be GtkTreeView. I am attaching a simple test > program that creates a GtkTreeView with 3 columns and 100,000 rows. > With GTK+ 3.2.2, the program uses 29 seconds of CPU time before > reaching idle, on a 2 GHz Core 2 Duo. (GTK+ 2.24.8 is considerably > better, at 10 s

Re: GtkTreeView very slow for large lists

2011-12-16 Thread jcupitt
2011/12/16 John Lindgren : > Lately I have been trying to improve the performance with large > playlists (i.e. on the order of 100,000 entries).  The one remaining > problem spot seems to be GtkTreeView.  I am attaching a simple test > program that creates a GtkTreeView with 3 columns

Re: GtkTreeView very slow for large lists

2011-12-15 Thread John Lindgren
Steve, Are you looking at the time it takes to show the window or the time before the CPU usage drops to idle? GtkTreeView does a lot of work in the background after the window appears. -- John On 12/15/2011 11:17 PM, Steve . wrote: > John, > > I just ran your test on my thinkpadx61,

Re: GtkTreeView very slow for large lists

2011-12-15 Thread John Lindgren
; may require some major architecture modifications depending how the > lists are stored / referenced. Not to mention maintenance headaches Shouldn't GtkTreeView already be doing this, or something like? As a matter of fact, I wrote/rewrote a custom list widget for Audacious's older W

Re: GtkTreeView very slow for large lists

2011-12-15 Thread John Lindgren
lists (i.e. on the order of 100,000 entries). The one remaining > problem spot seems to be GtkTreeView. I am attaching a simple test > program that creates a GtkTreeView with 3 columns and 100,000 rows. > With GTK+ 3.2.2, the program uses 29 seconds of CPU time before > reac

GtkTreeView very slow for large lists

2011-12-15 Thread John Lindgren
Hi, I am the lead developer of Audacious (a GTK+ based music player). Lately I have been trying to improve the performance with large playlists (i.e. on the order of 100,000 entries). The one remaining problem spot seems to be GtkTreeView. I am attaching a simple test program that creates a

Re: Displaying domain objects with GtkTreeView

2011-12-06 Thread Stefan Sauer
On 12/02/2011 03:55 PM, Rafał Krupiński wrote: > 2011/12/1 David Nečas : >> What are you talking about? You can pass any GObject-derived type as >> the column type (not that it matters much, the net result is the same as >> passing G_TYPE_OBJECT). You get back the objects that you stored there. >

Re: Displaying domain objects with GtkTreeView

2011-12-02 Thread Edheldil
On 12/02/2011 04:01 PM, David Nečas wrote: > On Fri, Dec 02, 2011 at 03:55:51PM +0100, Rafał Krupiński wrote: >> I rather meant to use my object as a model for a whole, multi-column >> row, somehow binding fields or properties to columns. > It makes no sense (to me anyway) to imagine one object as

Re: Displaying domain objects with GtkTreeView

2011-12-02 Thread David Nečas
On Fri, Dec 02, 2011 at 03:55:51PM +0100, Rafał Krupiński wrote: > I rather meant to use my object as a model for a whole, multi-column > row, somehow binding fields or properties to columns. It makes no sense (to me anyway) to imagine one object as multiple *model* columns. But it is easy to cre

Re: Displaying domain objects with GtkTreeView

2011-12-02 Thread Rafał Krupiński
2011/12/1 David Nečas : > What are you talking about?  You can pass any GObject-derived type as > the column type (not that it matters much, the net result is the same as > passing G_TYPE_OBJECT).  You get back the objects that you stored there. > > If you store objects of different classes to the

Re: Displaying domain objects with GtkTreeView

2011-12-01 Thread David Nečas
On Thu, Nov 24, 2011 at 04:30:25PM +0100, Rafał Krupiński wrote: > How do I display list of custom objects in GtkTreeView? > GtkTreeView takes GtkListStore as a model, but it doesn't allow custom > objects, only list of gobjects. > > On the other hand, when I want to read li

Displaying domain objects with GtkTreeView

2011-12-01 Thread Rafał Krupiński
Hello How do I display list of custom objects in GtkTreeView? GtkTreeView takes GtkListStore as a model, but it doesn't allow custom objects, only list of gobjects. On the other hand, when I want to read list's selection all I get is the GtkListStore model - list of gobjets and I have

Re: Displaying domain objects with GtkTreeView

2011-11-28 Thread Tristan Van Berkom
2011/11/28 Rafał Krupiński : > On 28.11.2011 14:17, Tristan Van Berkom wrote: >> >> 2011/11/28 Rafał Krupiński: >>> >>> Hi all! >>> >>> How do I display list of custom objects in GtkTreeView? >>> GtkTreeView takes GtkListStore as a

Re: Displaying domain objects with GtkTreeView

2011-11-28 Thread Tristan Van Berkom
2011/11/28 Rafał Krupiński : > Hi all! > > How do I display list of custom objects in GtkTreeView? > GtkTreeView takes GtkListStore as a model, but it doesn't allow custom > objects, only list of gobjects. What could that possibly mean ? If you have custom derived GObject

Displaying domain objects with GtkTreeView

2011-11-28 Thread Rafał Krupiński
Hi all! How do I display list of custom objects in GtkTreeView? GtkTreeView takes GtkListStore as a model, but it doesn't allow custom objects, only list of gobjects. On the other hand, when I want to read list's selection all I get is the GtkListStore model - list of gobjets and

GtkTreeView as Sidebar

2011-11-27 Thread Owas Lone
Hi, A sidebar (as in nautilus) is just a GtkTreeView, right? I want my TreeView to pick up the style for .sidebar class from gtk3 themes. here is how I'm trying to do it treeview_style = treeview.get_style_context() treeview_style.add_class('sidebar') but this d

Gtk3 and resizing GtkTreeView columns

2011-11-10 Thread Michael Cronenworth
I ported an app from GTK2 to GTK3. Aside from lots of function renaming and layout adjusting due to the flipping of the expand flag... I have a problem with columns in GtkTreeView widgets. In GTK2, resizing a column with the mouse past the width of the visible tree wouldn't cause the

GtkTreeView with resizeable Columns

2011-09-25 Thread Guenther Wutz
Hi list, i have a problem with GtkTreeViews in Gtk+-3.0. I want a behaviour like this: http://i.imgur.com/vAaHk.png My problem is, that this is not the default setting for GtkTreeViews. I already made an Test-Case for this: http://pastebin.com/wxvNAyUa The commented Code was only a test, but it

Re: GtkTreeView with 2 Columns

2011-09-10 Thread Michal Suchanek
re the style properties for each gtkWidget and in particular the > vertical-separator style property for my gtktreeview, but how can I set the > vertical-sperator? In Glade it's vertical|horizontal|both HTH Michal ___ gtk-app-devel-list mailing

Re: GtkTreeView with 2 Columns

2011-09-10 Thread Michal Suchanek
re the style properties for each gtkWidget and in particular the > vertical-separator style property for my gtktreeview, but how can I set the > vertical-sperator? Is that not property of your theme? I have no separator between columns. HTH Michal ___

GtkTreeView with 2 Columns

2011-09-10 Thread Paolo
vertical-separator style property for my gtktreeview, but how can I set the vertical-sperator? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

How to show song's information into GtkTreeView?

2011-06-10 Thread Phong Cao
Hello everybody, I am trying to develop a small music manager using GTK+ and GStreamer. However, I am currently unable to display the stream information (like artist, title, album, etc...) on the GtkTreeView. I do not know if anyone here has any experience developing software like this. But the

RE: GtkTreeView signal before row change

2011-03-08 Thread Lance Zhang
ed to achieve that with a timeout. A huge lot of work to achieve something trivial. It's so unnatural that I suspect there is a more elegant way not known to me who am still a novice in GTK+. Lance ---- > Date: Wed, 9 Mar 2011 06:41:11 +0900 > S

Re: GtkTreeView signal before row change

2011-03-08 Thread Tristan Van Berkom
On Wed, Mar 9, 2011 at 12:38 AM, Lance Zhang wrote: > > Hi: > > I have a situation where I need to verify data before allowing a row change > in a GtkTreeView. Essentially: > > 1. User requests a row change through a keyboard or a mouse; > 2. Check if data in the cur

GtkTreeView signal before row change

2011-03-08 Thread Lance Zhang
Hi: I have a situation where I need to verify data before allowing a row change in a GtkTreeView. Essentially: 1. User requests a row change through a keyboard or a mouse; 2. Check if data in the current row has been edited without be saved, or even is complete and valid, and prompt the user

Re: Can GtkTreeView appends a column group?

2010-07-31 Thread 吴小虎
GtkTreeViewColumn implement GtkCellLayout interface, so you can use GtkCellLayout methods to packing more than one GtkCellRenderer. 2010/7/31, c-aries : > Hi everyone. > > As the attachment picture shows, I wanna append a column group "Position" to > the GtkTreeVi

Can GtkTreeView appends a column group?

2010-07-31 Thread c-aries
Hi everyone. As the attachment picture shows, I wanna append a column group "Position" to the GtkTreeView. The column group "Position" has 3 GtkTreeViewColumn members: "Pan", "Tilt" and "Time". Under the big header button "Position", th

Re: How to create custom keyboard shortcuts for GTKTreeView?

2010-04-17 Thread Tadej Borovšak
te it with this when I have the time. > Thanks for the pointer! The signal that is emitted when cursor moves is GtkTreeView::cursor-changed. GtkTreeView::move-cursor is action signal that can be safely emitted by application. Tadej -- Tadej Borovšak tadeboro.blogspot.com tadeb...@gmail.com

Re: How to create custom keyboard shortcuts for GTKTreeView?

2010-04-17 Thread Jez
Oh, I had the impression that the move-cursor signal was emitted by the TreeView when the cursor was moved. I didn't know it was the other way around. I've already managed to get it working after reading your earlier email, but I might rewrite it with this when I have the time. Thanks for the point

Re: How to create custom keyboard shortcuts for GTKTreeView?

2010-04-17 Thread Tadej Borovšak
Hi. > Nonetheless, it feels a bit unnatural to replicate in my code behavior > that's already available in GtkTreeView, just so I can remap the > keys.. but whatever works, I guess (: Alternatively, you can also emit GtkTreeView::move-cursor signal with proper arguments, but gett

Re: How to create custom keyboard shortcuts for GTKTreeView?

2010-04-17 Thread Jez
gtk_tree_view_row_expanded looks like it should do the trick... thanks! I can't believe I missed that in the docs. Nonetheless, it feels a bit unnatural to replicate in my code behavior that's already available in GtkTreeView, just so I can remap the keys.. but whatever works, I guess (

  1   2   3   4   >