Closed Bug 657487 Opened 13 years ago Closed 13 years ago

Include static keyword in definitions of signal callback functions

Categories

(Core :: Widget: Gtk, defect)

All
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla6

People

(Reporter: hiro, Assigned: hiro)

Details

Attachments

(1 file)

Attached patch A patchSplinter Review
I do not know why those functions are not static but I guess those were copy-and-paste from static method of nsWindow class.
Attachment #532758 - Flags: review?(karlt)
Comment on attachment 532758 [details] [diff] [review]
A patch

AFAIK all of these methods already have internal linkage due to the static keyword in their declaration, but it makes sense to me to explicitly specify in the definition also.
Attachment #532758 - Flags: review?(karlt) → review+
Summary: Callback functions of signals shoud be static function → Include static keyword in definitions of signal callback functions
Assignee: nobody → hiikezoe
Keywords: checkin-needed
Hiroyuki, when adding "checkin-needed" on a bug, could you make sure your patch is properly formatted so the push is easier to do. See these links: 
https://developer.mozilla.org/en/Mercurial_FAQ#How_can_I_generate_a_patch_for_somebody_else_to_check-in_for_me.3f
http://blog.bonardo.net/2010/06/22/so-youre-about-to-use-checkin-needed

And thanks for all these patches :)
Status: NEW → ASSIGNED
Keywords: checkin-needed
Whiteboard: [fixed in cedar]
Version: unspecified → Trunk
Pushed:
http://hg.mozilla.org/mozilla-central/rev/72dc5f89f9cd
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Whiteboard: [fixed in cedar]
Target Milestone: --- → mozilla6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: