Re: GtkCellRendererState comparison



Il giorno Fri, 20 Apr 2012 09:53:33 +0430
Bijan Binaee <bijanbina gmail com> ha scritto:

hi

once i compile my code i got following a warning how can I fix it?

gtksourcefoldcellrenderer.c:331:14: warning: comparison between
'GtkCellRendererState' and 'enum <anonymous>' [-Wenum-compare]

here is the code:
if (state == GTK_STATE_PRELIGHT)

You are comparing GtkCellRendererState to GtkStateType. Try to use
GTK_CELL_RENDERER_PRELIT instead.

Ciao.
-- 
Nicola

also the full source is
here:http://paste.kde.org/460382/<http://paste.kde.org/460376/>



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