Liststore and editing cancelled event

2018-11-26 Thread Mike Martin via gtk-app-devel-list
Is there any way to disable the editing-cancelled event on cellrenderertext. Background When I have a liststore contained within a treestore I want the value to be be saved if I click on a button not contained within the treeview, so that it does not just dissapear Focus events dont seem to work

Problem with grids and items spanning more than one column

2019-04-02 Thread Mike Martin via gtk-app-devel-list
I am using an embedded Gtk grid within a grid , which contains numerous widgets However if I have a widget that spans more than one column it messes up the layout of all other widgets , which seem to position themseleves randomly along the width of this widget, causing horribly jagged widget

Setting attributes per cell in treeview (list store)

2019-04-03 Thread Mike Martin via gtk-app-devel-list
Hi I have a simple tree view based on a list store What is the best way to set attributes per row/column is for a specific cell not for a row or column? Basically it is used to set various options and some cells are not used, so I want them to be non-activatable /selectable to prevent any

TreeView - set border on individual cells

2019-04-04 Thread Mike Martin via gtk-app-devel-list
Is this possible? I did originally plan to have certain cells have a background colour to emphasize that there is a value to change. However as soon as the row is selected this is all wiped out by the highlight from selected row So is it possible to set the borders on a cell by cell basis, all I

Re: TreeView - set border on individual cells

2019-04-05 Thread Mike Martin via gtk-app-devel-list
gt; Not exact code, but this is process that worked for me > > Would still be useful if I could find out about borders though > > > > On Fri, 5 Apr 2019, 08:03 , wrote: > >> Am Donnerstag, den 04.04.2019, 23:04 +0100 schrieb Mike Martin via gtk- >> app-devel-list: >

liststore issue 1 - iter points to wrong row after sort of column with cellrenderercombo

2019-02-27 Thread Mike Martin via gtk-app-devel-list
I have come across an issue where the iter points to the wrong row on edited signal after sorting the column (via clicking header). This only happens with edited signal and not editing-started (which is correct) The edited iter is obtained via

liststore issue 2 - which 'path' comes from signal

2019-02-27 Thread Mike Martin via gtk-app-devel-list
according to the docs the path reference is edited signal = path editing-started = path changed = path_string which I thought meant that path would be a treepath (ie: an object) and path_string would be a reference to the row (an integer in the case of a simple liststore) However in all three

Re: liststore issue 1 - iter points to wrong row after sort of column with cellrenderercombo

2019-02-28 Thread Mike Martin via gtk-app-devel-list
Thanks Though what I don't quite get is the difference in behaviour between editing-started and edited (both using path to get the ITER) On my particular scenario I use editing-started to setup some stuff so I can use the iter created On Thu, 28 Feb 2019, 12:30 Nicolas Soubeiran via

Re: liststore issue 1 - iter points to wrong row after sort of column with cellrenderercombo

2019-03-02 Thread Mike Martin via gtk-app-devel-list
On Thu, 28 Feb 2019 at 18:05, Nicolas Soubeiran wrote: > As you noticed "editing-started" is used at the beginning of editing a > cell as the documentation states and is defined on the base class > GtkCellRenderer: > > This signal gets emitted when a cell starts to be edited. The intended use >

Treeview (liststore) CSS question

2019-03-18 Thread Mike Martin via gtk-app-devel-list
Is it possible to set different background for a treestore, with a liststore, for populated rows v blank area. ie: If I have a dynamic treeview I would like to have one background colour for the rows and another for the treestore where there are no rows The particular example has the following

Re: Treeview (liststore) CSS question

2019-03-19 Thread Mike Martin via gtk-app-devel-list
Its not whether the row is empty, its whether it exists On Mon, 18 Mar 2019 at 23:25, Daniel Kasak wrote: > On Tue, Mar 19, 2019 at 3:01 AM Mike Martin via gtk-app-devel-list < > gtk-app-devel-list@gnome.org> wrote: > >> Is it possible to set different backg

Re: Treeview (liststore) CSS question

2019-03-21 Thread Mike Martin via gtk-app-devel-list
apologies I did resolve my issue , posted as wrong person Resolved my issue, turns out I needed some voodoo with properties $widgetpage{file_scroll}->set('propagate_natural_height','1'); $widgetpage{file_scroll}->set_vexpand(0); On Tue, 19 Mar 2019 at 18:53, wrote: > > Hi Mike, > > Have you

Force liststore to update when leaving treeview

2019-02-12 Thread Mike Martin via gtk-app-devel-list
Is this possible? I have a (for example) a grid which contains Various action widgets And a Treeview based on a liststore Is there any way to make sure that the changes made to a cell in the liststore are "committed" if I click on one of the other widgets I cant find anything to do this and if

Tree view toggle and gtypes

2019-05-01 Thread Mike Martin via gtk-app-devel-list
Are there any gtypes that are compatible with both toggle and text renderers? Thanks ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Using different signals depending on which row of of a treeview

2019-04-29 Thread Mike Martin via gtk-app-devel-list
Has anyone done anything like this? Basically the idea is that I push multiple renderers into a treeview column , then depending on the row hide/show the appropriate renderer (text, combo, toggle) Then call the appropriate signal_connect (edited, changed, toggled)

Re: Using different signals depending on which row of of a treeview

2019-04-30 Thread Mike Martin via gtk-app-devel-list
/renderer) On Mon, 29 Apr 2019 at 22:57, Reuben Rissler wrote: > > > On 04/29/2019 10:36 AM, Mike Martin via gtk-app-devel-list wrote: > > Has anyone done anything like this? > I haven't, but you are welcom