Re:Re: Would it be possible that gtk implementation in C++

2014-08-09 Thread Robert Schroll

On Sat, Aug 9, 2014 at 10:41 AM, 黄羽众  wrote:

Another C++--, I have to say.


Many of us would consider that a complement.


Excuse for my unpolite, I can't find any point that interest me,
the highlights it describes is very common in many existing OOP 
language.


Yep, it's a bog-standard OOP language.  The killer feature is its tight 
integration with GObject.


And the only point I remember is its ABI compatible with C, which 
also limit its language possibility.


I'm pretty sure both Vala and C are Turing-complete. :)

I think it's would rather better to spend time solving the problem 
like gtkmm can't provide a function like 
"builder.signal_connect(this)" to auto connect the signals defined in 
glade XML files rather than start another project to reinvent the 
wheel.


It sounds like you're looking for Gtk.Builder.connect_signals() [1].  
It exists, but not in the gtkmm bindings.  This suggests to me that the 
problem is C++, not GTK.  There is a bug report [2], though, so jump in 
and get it fixed.


Robert

[1] 
http://references.valadoc.org/#!api=gtk+-3.0/Gtk.Builder.connect_signals

[2] https://bugzilla.gnome.org/show_bug.cgi?id=573482#c64


___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re:Re: Would it be possible that gtk implementation in C++

2014-08-09 Thread 黄羽众
I heard Vala before and I read the tutorial and some sample code of Vala today.


Silence...


Another C++--, I have to say.


Excuse for my unpolite, I can't find any point that interest me,
the highlights it describes is very common in many existing OOP language.


And the only point I remember is its ABI compatible with C, which also limit 
its language possibility.


I think it's would rather better to spend time solving the problem like gtkmm 
can't provide a function like "builder.signal_connect(this)" to auto connect 
the signals defined in glade XML files rather than start another project to 
reinvent the wheel. 


Sorry again, I am a bit excited.






在 2014-08-09 04:14:29,"Robert Schroll"  写道:
>On Fri, Aug 8, 2014 at 12:04 PM, 黄羽众  wrote:
>> Compare to many people here, I am freshman in GTK/GTKmm. I make this 
>> proposal just because sometimes I miss the day when I am using 
>> QT/Android/HTML5.
>
>In that case, I'd suggest you take a look at Vala [1,2].  Vala is a new 
>language, reminiscent of C# and Java, that's built around the GObject 
>system that's at the heart of GTK.  This means that there's no 
>impedance mismatch between the language's object system and GTK 
>objects.  It handles memory management for you (though you can play 
>with pointers if you really want).  It compiles to C, so it'll run 
>everywhere.
>
>I've been using Vala for only a little while, but I'm thoroughly 
>impressed.  Give it a look.
>
>Robert
>
>[1] https://wiki.gnome.org/Projects/Vala
>[2] https://wiki.gnome.org/Projects/Vala/ValaForJavaProgrammers
>
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list