Proposed changes for Pidgin 2.7.0

Felipe Contreras felipe.contreras at
Wed Jul 15 07:13:40 EDT 2009

On Wed, Jul 15, 2009 at 6:35 AM, John Bailey<rekkanoryo at> wrote:
> Felipe Contreras wrote:
>> g_timeout_add_seconds was introduced for a reason, not just to
>> unburden programmers from the hassle of thinking in milliseconds. So,
>> in order to properly use g_timeout_add_seconds, you of course need a
>> GLib version that supports that function, otherwise there's no
>> advantage of using purple_timeout_add_seconds over purple_timeout_add.
> Except that using the _seconds variant allows you not to care if glib supports
> it.  This gives you the functionality without the inconvenience of an '#if
> GLIB_CHECK_VERSION' in your code.

_seconds on GLib 2.12 makes the code compile, and run, but give you
the functionality? No.

Felipe Contreras

More information about the Devel mailing list