[gtk+] x11: Add suggested braces around empty body in 'if' statements
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] x11: Add suggested braces around empty body in 'if' statements
- Date: Sat, 7 Apr 2012 11:05:16 +0000 (UTC)
commit 826360a214f2a10511e7bde7afc61c9325520dec
Author: Benjamin Otte <otte redhat com>
Date: Sat Apr 7 12:50:40 2012 +0200
x11: Add suggested braces around empty body in 'if' statements
gdk/x11/gdkdnd-x11.c | 72 +++++++++++++++++++++++++++++++------------------
1 files changed, 45 insertions(+), 27 deletions(-)
---
diff --git a/gdk/x11/gdkdnd-x11.c b/gdk/x11/gdkdnd-x11.c
index d7ee100..3b6765e 100644
--- a/gdk/x11/gdkdnd-x11.c
+++ b/gdk/x11/gdkdnd-x11.c
@@ -1510,9 +1510,11 @@ motif_send_enter (GdkX11DragContext *context_x11,
if (!_gdk_x11_display_send_xevent (display,
GDK_WINDOW_XID (context->dest_window),
FALSE, 0, &xev))
- GDK_NOTE (DND,
- g_message ("Send event to %lx failed",
- GDK_WINDOW_XID (context->dest_window)));
+ {
+ GDK_NOTE (DND,
+ g_message ("Send event to %lx failed",
+ GDK_WINDOW_XID (context->dest_window)));
+ }
}
static void
@@ -1539,9 +1541,11 @@ motif_send_leave (GdkX11DragContext *context_x11,
if (!_gdk_x11_display_send_xevent (display,
GDK_WINDOW_XID (context->dest_window),
FALSE, 0, &xev))
- GDK_NOTE (DND,
- g_message ("Send event to %lx failed",
- GDK_WINDOW_XID (context->dest_window)));
+ {
+ GDK_NOTE (DND,
+ g_message ("Send event to %lx failed",
+ GDK_WINDOW_XID (context->dest_window)));
+ }
}
static gboolean
@@ -1589,9 +1593,11 @@ motif_send_motion (GdkX11DragContext *context_x11,
if (!_gdk_x11_display_send_xevent (display,
GDK_WINDOW_XID (context->dest_window),
FALSE, 0, &xev))
- GDK_NOTE (DND,
- g_message ("Send event to %lx failed",
- GDK_WINDOW_XID (context->dest_window)));
+ {
+ GDK_NOTE (DND,
+ g_message ("Send event to %lx failed",
+ GDK_WINDOW_XID (context->dest_window)));
+ }
return retval;
}
@@ -1623,9 +1629,11 @@ motif_send_drop (GdkX11DragContext *context_x11,
if (!_gdk_x11_display_send_xevent (display,
GDK_WINDOW_XID (context->dest_window),
FALSE, 0, &xev))
- GDK_NOTE (DND,
- g_message ("Send event to %lx failed",
- GDK_WINDOW_XID (context->dest_window)));
+ {
+ GDK_NOTE (DND,
+ g_message ("Send event to %lx failed",
+ GDK_WINDOW_XID (context->dest_window)));
+ }
}
/* Target Side */
@@ -2605,9 +2613,11 @@ xdnd_check_dest (GdkDisplay *display,
proxy = *proxy_data;
}
else
- GDK_NOTE (DND,
- g_warning ("Invalid XdndProxy "
- "property on window %ld\n", win));
+ {
+ GDK_NOTE (DND,
+ g_warning ("Invalid XdndProxy "
+ "property on window %ld\n", win));
+ }
XFree (proxy_data);
}
@@ -2629,9 +2639,11 @@ xdnd_check_dest (GdkDisplay *display,
*xdnd_version = *version;
}
else
- GDK_NOTE (DND,
- g_warning ("Invalid XdndAware "
- "property on window %ld\n", win));
+ {
+ GDK_NOTE (DND,
+ g_warning ("Invalid XdndAware "
+ "property on window %ld\n", win));
+ }
XFree (version);
}
@@ -3657,9 +3669,11 @@ gdk_x11_drag_context_drag_status (GdkDragContext *context,
if (!_gdk_x11_display_send_xevent (display,
GDK_WINDOW_XID (context->source_window),
FALSE, 0, &xev))
- GDK_NOTE (DND,
- g_message ("Send event to %lx failed",
- GDK_WINDOW_XID (context->source_window)));
+ {
+ GDK_NOTE (DND,
+ g_message ("Send event to %lx failed",
+ GDK_WINDOW_XID (context->source_window)));
+ }
}
else if (context->protocol == GDK_DRAG_PROTO_XDND)
{
@@ -3674,9 +3688,11 @@ gdk_x11_drag_context_drag_status (GdkDragContext *context,
xev.xclient.data.l[3] = 0;
xev.xclient.data.l[4] = xdnd_action_to_atom (display, action);
if (!xdnd_send_xevent (context_x11, context->source_window, FALSE, &xev))
- GDK_NOTE (DND,
- g_message ("Send event to %lx failed",
- GDK_WINDOW_XID (context->source_window)));
+ {
+ GDK_NOTE (DND,
+ g_message ("Send event to %lx failed",
+ GDK_WINDOW_XID (context->source_window)));
+ }
}
context_x11->old_action = action;
@@ -3754,9 +3770,11 @@ gdk_x11_drag_context_drop_finish (GdkDragContext *context,
xev.xclient.data.l[4] = 0;
if (!xdnd_send_xevent (GDK_X11_DRAG_CONTEXT (context), context->source_window, FALSE, &xev))
- GDK_NOTE (DND,
- g_message ("Send event to %lx failed",
- GDK_WINDOW_XID (context->source_window)));
+ {
+ GDK_NOTE (DND,
+ g_message ("Send event to %lx failed",
+ GDK_WINDOW_XID (context->source_window)));
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]