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

2019-05-01 Thread Mike Martin
This is more or less what I did except I added a signal_connect separately
to the visibilty (which is in a cell_data_function on first renderer)

ie: (perl)
my @cells=Treeview->get_column(n)->get_cells;
then
$cells[n]->signal_connect(blah
}
);
(where n is the appropriate number of column/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 welcome to my simple Glade mockup:
>
> 
> 
> 
>
>
>  
>
>
>
>
>  
>  
>
>  1
>  one
>
>
>  2
>  two
>
>
>  3
>  three
>
>  
>
>
>  
>
>
>
>
>
>
>
>
>  
>  
>
>  text
>  True
>  False
>  False
>
>
>  combo
>  False
>  True
>  False
>
>
>  toggle
>  False
>  False
>  True
>
>  
>
>
>  False
>  
>
>  
>  
>
>  True
>  True
>  tree_model
>  
>
>  
>  
>
>  column
>  
>
>  True
>
>
>  1
>  0
>
>  
>  
>
>  True
>  combo_model
>  1
>
>
>  2
>  0
>
>  
>  
>
>
>  3
>  3
>
>  
>
>  
>
>  
>
> 
> >
> > 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)
> So go ahead and add three different renderers, and use row values to set
> them visible or invisible. In this case we have three different
> column/row cells to set each widget visible.
> >
> > Then call the appropriate signal_connect (edited, changed, toggled)
> You can't really generate a signal on an invisible renderer, can you?
> > ___
> > gtk-app-devel-list mailing list
> > gtk-app-devel-list@gnome.org
> > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
> >
>
> ___
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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

2019-04-30 Thread Mike Martin via gtk-app-devel-list
 This is more or less what I did except I added a signal_connect separately
to the visibilty (which is in a cell_data_function on first renderer)

ie: (perl)
my @cells=Treeview->get_column(n)->get_cells;
then
$cells[n]->signal_connect(blah
}
);
(where n is the appropriate number of column/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 welcome to my simple Glade mockup:
>
> 
> 
> 
>
>
>  
>
>
>
>
>  
>  
>
>  1
>  one
>
>
>  2
>  two
>
>
>  3
>  three
>
>  
>
>
>  
>
>
>
>
>
>
>
>
>  
>  
>
>  text
>  True
>  False
>  False
>
>
>  combo
>  False
>  True
>  False
>
>
>  toggle
>  False
>  False
>  True
>
>  
>
>
>  False
>  
>
>  
>  
>
>  True
>  True
>  tree_model
>  
>
>  
>  
>
>  column
>  
>
>  True
>
>
>  1
>  0
>
>  
>  
>
>  True
>  combo_model
>  1
>
>
>  2
>  0
>
>  
>  
>
>
>  3
>  3
>
>  
>
>  
>
>  
>
> 
> >
> > 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)
> So go ahead and add three different renderers, and use row values to set
> them visible or invisible. In this case we have three different
> column/row cells to set each widget visible.
> >
> > Then call the appropriate signal_connect (edited, changed, toggled)
> You can't really generate a signal on an invisible renderer, can you?
> > ___
> > gtk-app-devel-list mailing list
> > gtk-app-devel-list@gnome.org
> > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
> >
>
> ___
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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

2019-04-29 Thread Reuben Rissler



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 welcome to my simple Glade mockup:




  
  
    
  
  
  
  
    
    
  
    1
    one
  
  
    2
    two
  
  
    3
    three
  
    
  
  
    
  
  
  
  
  
  
  
  
    
    
  
    text
    True
    False
    False
  
  
    combo
    False
    True
    False
  
  
    toggle
    False
    False
    True
  
    
  
  
    False
    
  
    
    
  
    True
    True
    tree_model
    
  
    
    
  
    column
    
  
    True
  
  
    1
    0
  
    
    
  
    True
    combo_model
    1
  
  
    2
    0
  
    
    
  
  
    3
    3
  
    
  
    
  
    
  



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)
So go ahead and add three different renderers, and use row values to set 
them visible or invisible. In this case we have three different 
column/row cells to set each widget visible.


Then call the appropriate signal_connect (edited, changed, toggled)

You can't really generate a signal on an invisible renderer, can you?

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



___
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)
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list