Re: Color fonts

2017-06-30 Thread Bastien Nocera
On Thu, 2017-06-29 at 23:18 -0400, Matthias Clasen wrote: > I had another go at this here: > https://github.com/matthiasclasen/cairo/tree/emoji-again I rebased your old branch on top of 1.14.10 (the current stable): https://fedorapeople.org/~hadess/emoji/cairo-emoji-5-rebased-on-1.14.10.patch

Re: [cairo] Color fonts

2017-06-30 Thread Matthias Clasen
On Fri, 2017-06-30 at 17:02 +0200, Uli Schlachter wrote: > Hi, > > On 28.06.2017 14:23, Behdad Esfahbod wrote: > > All of you have asked me about the status of color fonts in > > cairo. There's > > some discussion here: > > what was the solution to make this fit into cairo's drawing model? >

Re: [cairo] Color fonts

2017-06-30 Thread Behdad Esfahbod
On Jun 30, 2017 7:51 PM, "Matthias Clasen" wrote: On Fri, 2017-06-30 at 17:02 +0200, Uli Schlachter wrote: > Hi, > > On 28.06.2017 14:23, Behdad Esfahbod wrote: > > All of you have asked me about the status of color fonts in > > cairo. There's > > some discussion here: > >

Re: Color fonts

2017-06-30 Thread Matthias Clasen
On Thu, Jun 29, 2017 at 11:18 PM, Matthias Clasen wrote: > I had another go at this here: https://github.com/ > matthiasclasen/cairo/tree/emoji-again > I've spent some more time on this branch. It now uses paint only for clusters that consists purely of color

g_signal_connect() and G_OBJECT

2017-06-30 Thread Ingo Brückl
Hi, it seems that it was common practice to cast the first argument of g_signal_connect() to G_OBJECT when I started developing applications with GTK+ quite a while ago. At least I've learned it that way and am doing it ever since. I repeatedly see usage of g_signal_connect() without that cast

Re: g_signal_connect() and G_OBJECT

2017-06-30 Thread Emmanuele Bassi
The first argument of `g_signal_connect()` is a gpointer (i.e. a `void*`), so you don't need a cast at all — C will implicitly cast any pointer to `void*`, and from `void*` to any other pointer. Additionally, as you discovered, signals are GTypeInstance features — you can emit signals on anything