Re: signals with GTK_TYPE_ADJUSTMENT
Tony Houghton <[email protected]> Sun, 8 Apr 2018 18:26:53 +0100
| Newsgroups | gmane.comp.gnome.devtools.gob.general |
|---|---|
| Message-ID | <CA+GXpVXO5ByWbmQVwvZ1W1=eWLF+Hp2nL+S0_VL_NU8V_vE3GQ@mail.gmail.com> |
This is a multi-part message in MIME format. [email protected] Content-Type: multipart/alternative; boundary="00000000000068f9940569599808" --00000000000068f9940569599808 Content-Type: text/plain; charset="UTF-8" I think the probem with vala is that it's mainly the work of one or two people who don't have enough time to work on it much any more. The GNOME devs are quite conservative about accepting patches from outsiders, but don't have enough time to review patches either. On 8 April 2018 at 16:28, Jiri Lebl <[email protected]> wrote: > Hi, > > Yes, it is still alive (the email at least). I was a bit busy after > spring break, grading exams, etc... so I've been neglecting my email. > > I haven't really looked at much GObject programming in years, so I'd have > trouble figuring out what was wrong. I assume gob would require a bit more > than just a few patches to bring it really up to date. > > Anyway, I would have thought making it > > signal last NONE (POINTER, POINTER) > void > set_scroll_adjustments (self, > GtkAdjustment *hadjustment, > GtkAdjustment *vadjustment) > > Would make it work (notice the lack of : in the GtkAdjustment to not treat > them as GObjects). Also the return was mismatched, NONE in the signature > and gboolean in the prototype. > > What you can also do is put gob into your build, just not install it, and > then you have a customized copy that's distributed with the sources with > whatever patches you need. I remember having done that a very long time > ago for something since gob wasn't widely installed. > > I always figured that vala would take its place, so it's a bit sad to hear > that it's not doing good either. I remember there was a lot of pushback to > gob early on, I wonder if it's the same thing for vala. Vala really > happened after I sort of moved on from gnome programming for the most part, > so I haven't really been paying much attention to it, but it seemed very > promising. > > Best, > > Jiri > > > On Sun, Apr 8, 2018 at 8:21 AM, Tony Houghton <[email protected]> wrote: > >> Also, the GObject boilerplate macros have improved since I last used GOB, >> so it's not quite as much hassle as it used to be. >> >> I'm wondering if Kotlin native could replace Vala. Unlike the JVM variant >> it compiles all the way to machine code, is easy to interop with C, it uses >> reference counting instead of GC (AFAIK), and its class/object structure is >> quite close to GObject's. The only downside is that the only editor with >> decent support for it is CLion, which isn't free. >> >> On 8 April 2018 at 12:56, Dov Grobgeld <[email protected]> wrote: >> >>> Yeah, sigh... I realized. >>> >>> The problem is that without either gob2 or vala, there is no friendly >>> method of writing pure Gtk widgets in C. And without a C only widget, there >>> is no support for multi-language bindings, native speed, etc. >>> >>> How well. I guess I'll continue patching the Gob2 output for the time >>> being. >>> >>> Here is the link to the widget I'm working on: >>> >>> https://github.com/dov/gtkimageviewer/blob/gtk3/src/gtk-image-viewer.gob >>> >>> >>> >>> >>> On Sun, Apr 8, 2018 at 2:46 PM, Tony Houghton <[email protected]> wrote: >>> >>>> I forgot I was subscribed. I don't use GOB any more because it isn't >>>> supported by even more powerful productivity aids like vim-youcompleteme. I >>>> guess Vala sort of superseded GOB, but that's dying now too. >>>> >>> >>> >> >> -- >> to unsubscribe: >> send mail to [email protected] with "unsubscribe gob-list" in the subject >> >> > > > -- > Jiri (George) Lebl, http://math.okstate.edu/people/lebl/ or > http://www.jirka.org/ > --00000000000068f9940569599808 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">I think the probem with vala is that it's mainly the w= ork of one or two people who don't have enough time to work on it much = any more. The GNOME devs are quite conservative about accepting patches fro= m outsiders, but don't have enough time to review patches either.</div>= <div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On 8 April 2018 a= t 16:28, Jiri Lebl <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" ta= rget=3D"_blank">[email protected]</a>></span> wrote:<br><blockquote class=3D"= gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-= left:1ex"><div dir=3D"ltr"><div>Hi,</div><div><br></div><div>Yes, it is sti= ll alive (the email at least).=C2=A0 I was a bit busy after spring break, g= rading exams, etc... so I've been neglecting my email.<br><br></div><di= v>I haven't really looked at much GObject programming in years, so I= 9;d have trouble figuring out what was wrong.=C2=A0 I assume gob would requ= ire a bit more than just a few patches to bring it really up to date.</div>= <div><br></div><div>Anyway, I would have thought making it</div><div><br></= div><div><span>signal last NONE (POINTER, POINTER)<br> =C2=A0 void<br> =C2=A0 set_scroll_adjustments (self,<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 GtkAdjustment *hadjustment,<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 GtkAdjustment=C2=A0 *vadjustment)</span></div><div><span>= <br></span></div><div><span>Would make it work (notice the lack of : in the= GtkAdjustment to not treat them as GObjects).=C2=A0 Also the return was mi= smatched, NONE in the signature and gboolean in the prototype.</span><br></= div><div><br></div><div>What you can also do is put gob into your build, ju= st not install it, and then you have a customized copy that's distribut= ed with the sources with whatever patches you need.=C2=A0 I remember having= done that a very long time ago for something since gob wasn't widely i= nstalled.<br></div><div><br></div><div>I always figured that vala would tak= e its place, so it's a bit sad to hear that it's not doing good eit= her.=C2=A0 I remember there was a lot of pushback to gob early on, I wonder= if it's the same thing for vala.=C2=A0 Vala really happened after I so= rt of moved on from gnome programming for the most part, so I haven't r= eally been paying much attention to it, but it seemed very promising.<br></= div><div><br></div><div>Best,</div><div><br></div><div>Jiri<br></div><div><= br></div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote"><d= iv><div class=3D"h5">On Sun, Apr 8, 2018 at 8:21 AM, Tony Houghton <span di= r=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]= .uk</a>></span> wrote:<br></div></div><blockquote class=3D"gmail_quote" = style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><di= v><div class=3D"h5"><div dir=3D"ltr">Also, the GObject boilerplate macros h= ave improved since I last used GOB, so it's not quite as much hassle as= it used to be.<div><br></div><div>I'm wondering if Kotlin native could= replace Vala. Unlike the JVM variant it compiles all the way to machine co= de, is easy to interop with C, it uses reference counting instead of GC (AF= AIK), and its class/object structure is quite close to GObject's. The o= nly downside is that the only editor with decent support for it is CLion, w= hich isn't free.</div></div><div class=3D"m_218673293776483673HOEnZb"><= div class=3D"m_218673293776483673h5"><div class=3D"gmail_extra"><br><div cl= ass=3D"gmail_quote">On 8 April 2018 at 12:56, Dov Grobgeld <span dir=3D"ltr= "><<a href=3D"mailto:[email protected]" target=3D"_blank">dov.grobg= [email protected]</a>></span> wrote:<br><blockquote class=3D"gmail_quote" st= yle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div = dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:arial,helveti= ca,sans-serif">Yeah, sigh... I realized. <br><br></div><div class=3D"gmail_= default" style=3D"font-family:arial,helvetica,sans-serif">The problem is th= at without either gob2 or vala, there is no friendly method of writing pure= Gtk widgets in C. And without a C only widget, there is no support for mul= ti-language bindings, native speed, etc. <br><br></div><div class=3D"gmail_= default" style=3D"font-family:arial,helvetica,sans-serif">How well. I guess= I'll continue patching the Gob2 output for the time being.<br><br></di= v><div class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-se= rif">Here is the link to the widget I'm working on: <br><br></div><div = class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif"><a= href=3D"https://github.com/dov/gtkimageviewer/blob/gtk3/src/gtk-image-view= er.gob" target=3D"_blank">https://github.com/dov/gtkimag<wbr>eviewer/blob/g= tk3/src/gtk-imag<wbr>e-viewer.gob</a><br><br></div><div class=3D"gmail_defa= ult" style=3D"font-family:arial,helvetica,sans-serif"><br><br></div></div><= div class=3D"m_218673293776483673m_3135134828167119017HOEnZb"><div class=3D= "m_218673293776483673m_3135134828167119017h5"><div class=3D"gmail_extra"><b= r><div class=3D"gmail_quote">On Sun, Apr 8, 2018 at 2:46 PM, Tony Houghton = <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blank">h@= realh.co.uk</a>></span> wrote:<br><blockquote class=3D"gmail_quote" styl= e=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div di= r=3D"ltr">I forgot I was subscribed. I don't use GOB any more because i= t isn't supported by even more powerful productivity aids like vim-youc= ompleteme. I guess Vala sort of superseded GOB, but that's dying now to= o.</div> </blockquote></div><br></div> </div></div></blockquote></div><br></div> </div></div><br></div></div><span class=3D"HOEnZb"><font color=3D"#888888">= --<br> to unsubscribe:<br> send mail to <a href=3D"mailto:[email protected]" target=3D"_blank">minimal= [email protected]</a> with "unsubscribe gob-list" in the subject<br> <br></font></span></blockquote></div><span class=3D"HOEnZb"><font color=3D"= #888888"><br><br clear=3D"all"><br>-- <br><div class=3D"m_21867329377648367= 3gmail_signature" data-smartmail=3D"gmail_signature">Jiri (George) Lebl, <a= href=3D"http://math.okstate.edu/people/lebl/" target=3D"_blank">http://mat= h.okstate.edu/<wbr>people/lebl/</a> or <a href=3D"http://www.jirka.org/" ta= rget=3D"_blank">http://www.jirka.org/</a></div> </font></span></div> </blockquote></div><br></div> --00000000000068f9940569599808-- [email protected] Content-Type: text/plain; charset=us-ascii; name="footer.txt" Content-Disposition: inline Content-Transfer-Encoding: 8bit -- to unsubscribe: send mail to [email protected] with "unsubscribe gob-list" in the subject [email protected]