Re: [Vala] avoid "method never used" warning for methods linked to Glade files in private class



Hi,

Except for nested class, I never found "private class" a good design (C#
doesn't allow it).
Your class should probaly be internal.

Just a suggestion :
Is there a name conflict with your methods ?
When the class is public, the vala scope resolver found them, but when the
class is private/internal it points at other methods with the same name and
not yours ?

You should look into gtk templates to bind callbacks to your ui, it's quite
simple.

Luc.

Le mer. 2 mai 2018 à 00:54, rastersoft <raster rastersoft com> a écrit :

Hi:

Yes, still have they.


El 02/05/18 a las 00:08, Al Thomas escribió:
On Tuesday, 1 May 2018, 17:49:09 BST, rastersoft
<raster rastersoft com> wrote:
When the class is public everything is fine, but when I declare it as
private (which I need for several reasons) I receive a "method 'XXXX'
never used" warning.

How can I avoid those warnings?

Do you still get the warning if you mark it 'internal' instead of
'private'?

_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]