summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-04-07 12:50:40 +0200
committerBenjamin Otte <otte@redhat.com>2012-04-07 13:01:24 +0200
commit826360a214f2a10511e7bde7afc61c9325520dec (patch)
tree18dbf3422ae870642d7e8f523742e1499a11efa6 /gdk
parent2ef4b930c79463e519b91f99b8dbed04cf45bcc0 (diff)
downloadgtk+-826360a214f2a10511e7bde7afc61c9325520dec.tar.gz
x11: Add suggested braces around empty body in 'if' statements
Diffstat (limited to 'gdk')
-rw-r--r--gdk/x11/gdkdnd-x11.c72
1 files changed, 45 insertions, 27 deletions
diff --git a/gdk/x11/gdkdnd-x11.c b/gdk/x11/gdkdnd-x11.c
index d7ee1000da..3b6765e4d9 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)));
+ }
}
}