Re: [PATCH] guarantee that (GdkEventKey.state & GDK_RELEASE_MASK) is 0 in gdk_event_translate()
- From: Darin Adler <darin eazel com>
- To: Owen Taylor <otaylor redhat com>
- Cc: <gtk-devel-list gnome org>
- Subject: Re: [PATCH] guarantee that (GdkEventKey.state & GDK_RELEASE_MASK) is 0 in gdk_event_translate()
- Date: Mon, 04 Dec 2000 11:01:51 -0800
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]