Re: signals with GTK_TYPE_ADJUSTMENT
Jiri Lebl <[email protected]> Sun, 8 Apr 2018 10:28:52 -0500
| Newsgroups | gmane.comp.gnome.devtools.gob.general |
|---|---|
| Message-ID | <CALiT++vx1ZnTfNx6Co_RWeQ8oE3tWrshYYPbpSrrxu2zMRsnWA@mail.gmail.com> |
This is a multi-part message in MIME format. [email protected] Content-Type: multipart/alternative; boundary="000000000000c15d19056957f485" --000000000000c15d19056957f485 Content-Type: text/plain; charset="UTF-8" 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/ --000000000000c15d19056957f485 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hi,</div><div><br></div><div>Yes, it is still alive (= the email at least).=C2=A0 I was a bit busy after spring break, grading exa= ms, etc... so I've been neglecting my email.<br><br></div><div>I haven&= #39;t really looked at much GObject programming in years, so I'd have t= rouble figuring out what was wrong.=C2=A0 I assume gob would require 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">On= Sun, Apr 8, 2018 at 8:21 AM, Tony Houghton <span dir=3D"ltr"><<a href= =3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>></span> wr= ote:<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">Also, the GObject b= oilerplate macros have improved since I last used GOB, so it's not quit= e 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 th= e way to machine code, is easy to interop with C, it uses reference countin= g instead of GC (AFAIK), and its class/object structure is quite close to G= Object's. The only downside is that the only editor with decent support= for it is CLion, which isn't free.</div></div><div class=3D"HOEnZb"><d= iv class=3D"h5"><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">O= n 8 April 2018 at 12:56, Dov Grobgeld <span dir=3D"ltr"><<a href=3D"mail= to:[email protected]" target=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 clas= s=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif">Yeah, = sigh... I realized. <br><br></div><div class=3D"gmail_default" style=3D"fon= t-family:arial,helvetica,sans-serif">The problem is that without either gob= 2 or vala, there is no friendly method of writing pure Gtk widgets in C. An= d without a C only widget, there is no support for multi-language bindings,= native speed, etc. <br><br></div><div class=3D"gmail_default" style=3D"fon= t-family:arial,helvetica,sans-serif">How well. I guess I'll continue pa= tching the Gob2 output for the time being.<br><br></div><div class=3D"gmail= _default" style=3D"font-family:arial,helvetica,sans-serif">Here is the link= to the widget I'm working on: <br><br></div><div class=3D"gmail_defaul= t" style=3D"font-family:arial,helvetica,sans-serif"><a href=3D"https://gith= ub.com/dov/gtkimageviewer/blob/gtk3/src/gtk-image-viewer.gob" target=3D"_bl= ank">https://github.com/dov/gtkimag<wbr>eviewer/blob/gtk3/src/gtk-<wbr>imag= e-viewer.gob</a><br><br></div><div class=3D"gmail_default" style=3D"font-fa= mily:arial,helvetica,sans-serif"><br><br></div></div><div class=3D"m_313513= 4828167119017HOEnZb"><div class=3D"m_3135134828167119017h5"><div class=3D"g= mail_extra"><br><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">[email protected]</a>></span> wrote:<br><blockquote class=3D"gma= il_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-lef= t:1ex"><div dir=3D"ltr">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.</div> </blockquote></div><br></div> </div></div></blockquote></div><br></div> </div></div><br>--<br> to unsubscribe:<br> send mail to <a href=3D"mailto:[email protected]">[email protected]</a> wit= h "unsubscribe gob-list" in the subject<br> <br></blockquote></div><br><br clear=3D"all"><br>-- <br><div class=3D"gmail= _signature" data-smartmail=3D"gmail_signature">Jiri (George) Lebl, <a href= =3D"http://math.okstate.edu/people/lebl/" target=3D"_blank">http://math.oks= tate.edu/people/lebl/</a> or <a href=3D"http://www.jirka.org/" target=3D"_b= lank">http://www.jirka.org/</a></div> </div> --000000000000c15d19056957f485-- [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]