GNOME Bugzilla – Bug 239175
the declaration of LAST_SIGNAL to a certain number should be changed
Last modified: 2003-03-12 17:33:45 UTC
~/gal/gal/widgets/e-option-menu.c has these lines: enum{ LAST_SIGNAL }; static guint signals [LAST_SIGNAL] = { 0, } //error here! When we build gal using Forte, it will error at that line. Forte won't see LAST_SIGNAL as 0 or 1 defined in enum. We should regular the code here.
Since LAST_SIGNAL is equal to 0, the array definition of signals[LAST_SIGNAL] is not correct. The member number should be LAST_SIGNAL+1.
LAST_SIGNAL is a placeholder enum that is used like a "count" value extensively in gal. In this case, since there are no signals for this object, there is no need for a signals[] or the enum. I have committed a patch to remove them to CVS trunk. Please advise if you need this patch on the 1-2-branch and I will backport it.