g_connect_signal events. underscore vs dash



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I have a question as regards to g_connect_signal, and signal names that are passed (as the
2nd arg).

A number of signal names are composite names, dashed/underscored together.

For example, "button-release-event"

I have some old code, that in many places is using underscores instead of dashes. e.g.
"button_release_event"; in fact I have cases where the same signal is g_connect'ed in
different places in the code, one place with underscores ("button_release_event") and the
other place with dashes ("button-release-event").

My question: Is one preferred over the other ? is the underscore deprecated ? What's the
best spelling to use ?

thanks, and best rgds,

- -Greg

- --
+---------------------------------------------------------------------+

Please also check the log file at "/dev/null" for additional information.
                (from /var/log/Xorg.setup.log)

| Greg Hosler                                   ghosler redhat com    |
+---------------------------------------------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFH7urn404fl/0CV/QRAt0vAJ4tjlkeHiMHvqklOzH84A/3OHmxkQCgg+5F
iTz4Gm9rsA0H23qfccPUo1g=
=rwcS
-----END PGP SIGNATURE-----



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