mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
x11: Add suggested braces around empty body in 'if' statements
This commit is contained in:
parent
2ef4b930c7
commit
826360a214
@ -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)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user