Re: [Vala] avoid "method never used" warning for methods linked to Glade files in private class
- From: rastersoft <raster rastersoft com>
- To: Andres Fernandez <andres softwareperonista com ar>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] avoid "method never used" warning for methods linked to Glade files in private class
- Date: Tue, 1 May 2018 21:26:55 +0200
Hi:
No, no... the methods are public; the class is what is private. And I'm
using "connect_signals", so the source doesn't seem to use the method,
but it is used.
El 01/05/18 a las 19:47, Andres Fernandez escribió:
El mar., 1 may. 2018 13:49, rastersoft <raster rastersoft com
<mailto: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]