Re: Treeview (liststore) CSS question

2019-03-19 Thread Eric Cashon via gtk-app-devel-list
Hi Mike, Have you tried gtk_widget_set_vexpand(tree, FALSE); on the treeview? This might work to show a different background color on the unused space of the treeview. I don't know if this is of any help but also remember that you can set individual row colors in a treeview by having a

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 background for a treestore, with a >>

Re: Correct way to deallocate an unix signal source

2019-03-19 Thread Enrico Mioso via gtk-app-devel-list
Dear Philip, thank you very much for your answer and patience. I will send a patch soon! :) Regarding the code, at exit I do the following: if (my_state->mainloop) { g_main_loop_unref(my_state->mainloop); my_state->mainloop = NULL; } if (my_state->ctx) {

Re: Correct way to deallocate an unix signal source

2019-03-19 Thread Enrico Mioso via gtk-app-devel-list
That's great! Thanks! Yeah, I'll keep it on my mind. I currently choose to depend on GLib 2.58 to do something like: g_source_set_callback(lctx->logwatcher, G_SOURCE_FUNC(agh_ubus_logstream_channel_io), lctx, NULL); so there should be no issues in case. Thank again!! Enrico On Mon, 18 Mar

Treeview (liststore) CSS question

2019-03-19 Thread Mike Martin
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
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 background for a treestore, with a >>

Re: Correct way to deallocate an unix signal source

2019-03-19 Thread Philip Withnall
On Mon, 2019-03-18 at 14:38 +0100, Enrico Mioso wrote: > Regarding the code, at exit I do the following: > if (my_state->mainloop) { > g_main_loop_unref(my_state->mainloop); > my_state->mainloop = NULL; > } > > if (my_state->ctx) { > g_main_context_unref(my_state->ctx); >