Received: from eggs.gnu.org ([2001:4830:134:3::10]:46408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVN3i-0005UX-AQ for qemu-devel@nongnu.org; Wed, 02 Apr 2014 11:26:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WVN3Z-0002gE-DR for qemu-devel@nongnu.org; Wed, 02 Apr 2014 11:26:34 -0400 Received: from cantor2.suse.de ([195.135.220.15]:34153 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVN3Z-0002gA-7f for qemu-devel@nongnu.org; Wed, 02 Apr 2014 11:26:25 -0400 Date: Wed, 02 Apr 2014 17:26:24 +0200 Message-ID: From: Takashi Iwai In-Reply-To: <1396451874.31715.23.camel@nilsson.home.kraxel.org> References: <1396441953-19260-1-git-send-email-tiwai@suse.de> <1396441953-19260-2-git-send-email-tiwai@suse.de> <1396451874.31715.23.camel@nilsson.home.kraxel.org> MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Subject: Re: [Qemu-devel] [PATCH v2 1/4] gtk: Use gtk generic event signal instead of motion-notify-event List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org, Anthony Liguori , Cole Robinson At Wed, 02 Apr 2014 17:17:54 +0200, Gerd Hoffmann wrote: > > On Mi, 2014-04-02 at 14:32 +0200, Takashi Iwai wrote: > > +static gboolean gd_event(GtkWidget *widget, GdkEvent *event, void > > *opaque) > > +{ > > + if (event->type == GDK_MOTION_NOTIFY) > > + return gd_motion_event(widget, &event->motion, opaque); > > + return FALSE; > > +} > > Fails checkpatch: > > WARNING: braces {} are necessary for all arms of this statement > #12: FILE: ui/gtk.c:771: > + if (event->type == GDK_MOTION_NOTIFY) > [...] > > total: 0 errors, 1 warnings, 23 lines checked OK, you guys have a different checkpatch bible than the kernel tree :) I'll tidy up later, if the patch is really acceptable. thanks, Takashi