I looked into this a little more. It looks like using an overlay is the easiest
solution that I could find. You can override the render function of the cell
renderer but then you will probably need all the code in the text cell
renderer. This isn't too bad since the text cell renderer is modul
I see gtk_cell_renderer_render() in the documentation and it has a cairo_t to
draw with. I haven't tried to subclass from a treeview and override the
rendering. Something I should probably figure out. Do you know of an example of
doing something like this in C? Maybe I can put together a bette
On Sat, 6 Apr 2019 at 20:15, wrote:
> The second cairo_t is used so that the rectangle can be lined up to the
> cell. If I use the cairo_t in the "draw" callback then the rectangle
> doesn't line up.
>
You're still using:
1. the wrong window to draw on
2. deprecated API
3. a slow rendering
Hi Emmanuele,
The second cairo_t is used so that the rectangle can be lined up to the cell.
If I use the cairo_t in the "draw" callback then the rectangle doesn't line up.
Eric
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https:
On Sat, 6 Apr 2019 at 19:05, Eric Cashon via gtk-app-devel-list <
gtk-app-devel-list@gnome.org> wrote:
> static gboolean draw_rectangle(GtkWidget *tree_view, cairo_t *cr, gpointer
> data)
> {
> GtkTreePath *path=gtk_tree_path_new_from_indices(row_g, -1);
>
> g_print("Draw Rectangle %i
Hi Mike,
I gave what you said a try and it looks to work well enough. Then, how do you
get a box around a selected cell. It seems to me if you let the built in
renderer do it's thing and then get a cairo_t to just draw a rectangle after,
it should work, right? OK, a bit of a hack but it works
On Fri, 5 Apr 2019, 12:36 Mike Martin, wrote:
> Update, I worked out how to get rid of highlight
>
> 1 treeview->set selection mode(none)
> 2 treeview->signal_connect(row_activated =>sub{
> Treeview->set_cursor_on_cell(path,column,cell,true)
> }
> )
>
> Not exact code, but this is process that wo
Update, I worked out how to get rid of highlight
1 treeview->set selection mode(none)
2 treeview->signal_connect(row_activated =>sub{
Treeview->set_cursor_on_cell(path,column,cell,true)
}
)
Not exact code, but this is process that worked for me
Would still be useful if I could find out about bor
Am Donnerstag, den 04.04.2019, 23:04 +0100 schrieb 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
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
10 matches
Mail list logo