Re: [PATCH] guarantee that (GdkEventKey.state & GDK_RELEASE_MASK) is 0 in gdk_event_translate()



on 12/3/00 8:50 AM, Owen Taylor at otaylor redhat com wrote:

> +/* Hack because GDK_RELEASE_MASK (a mistake in and of itself) was
> + * accidentally given a value that overlaps with real bits in the
> + * state field.
> + */
> +static inline guint
> +translate_state (guint xstate)
> +{
> +  return xstate & ~GDK_RELEASE_MASK;
> +}
> +

Shouldn't this use G_INLINE_FUNC instead of inline?

    -- Darin





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