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



El mar., 1 may. 2018 13:49, rastersoft <raster rastersoft com> escribió:

Hi all:

I need to create a class with several methods that are used as callbacks
for buttons and other widgets, but they are defined in a Glade file.

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?

Thanks.


HI!

If a method is private should be used inside the class it belongs.
Connecting it to a signal, if is a callback should avoid that warning.


Are you using GtkTemplates?




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