mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 14:20:21 +00:00
gdk/x11: s/gdk_event_free/g_object_unref/
This commit is contained in:
parent
f79ac6d30b
commit
3021edc38d
@ -897,7 +897,7 @@ _gdk_device_manager_core_handle_focus (GdkWindow *window,
|
||||
gdk_event_set_source_device (event, source_device);
|
||||
|
||||
gdk_display_put_event (gdk_window_get_display (window), event);
|
||||
gdk_event_free (event);
|
||||
g_object_unref (event);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1259,7 +1259,7 @@ send_client_message_async_cb (Window window,
|
||||
|
||||
gdk_display_put_event (gdk_drag_context_get_display (context), temp_event);
|
||||
|
||||
gdk_event_free (temp_event);
|
||||
g_object_unref (temp_event);
|
||||
}
|
||||
|
||||
g_object_unref (context);
|
||||
@ -1312,7 +1312,7 @@ xdnd_send_xevent (GdkX11DragContext *context_x11,
|
||||
if ((*xdnd_filters[i].func) (event_send, temp_event, NULL) == GDK_FILTER_TRANSLATE)
|
||||
gdk_display_put_event (display, temp_event);
|
||||
|
||||
gdk_event_free (temp_event);
|
||||
g_object_unref (temp_event);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
@ -2362,7 +2362,7 @@ gdk_x11_drag_context_drag_motion (GdkDragContext *context,
|
||||
gdk_event_set_device (temp_event, gdk_drag_context_get_device (context));
|
||||
|
||||
gdk_display_put_event (gdk_drag_context_get_display (context), temp_event);
|
||||
gdk_event_free (temp_event);
|
||||
g_object_unref (temp_event);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -2407,7 +2407,7 @@ gdk_x11_drag_context_drag_motion (GdkDragContext *context,
|
||||
gdk_event_set_device (temp_event, gdk_drag_context_get_device (context));
|
||||
|
||||
gdk_display_put_event (gdk_drag_context_get_display (context), temp_event);
|
||||
gdk_event_free (temp_event);
|
||||
g_object_unref (temp_event);
|
||||
}
|
||||
break;
|
||||
case GDK_DRAG_PROTO_MOTIF:
|
||||
|
@ -165,7 +165,7 @@ handle_focus_change (GdkEventCrossing *event)
|
||||
gdk_event_set_device (focus_event, gdk_event_get_device ((GdkEvent *) event));
|
||||
|
||||
gdk_display_put_event (gdk_window_get_display (event->any.window), focus_event);
|
||||
gdk_event_free (focus_event);
|
||||
g_object_unref (focus_event);
|
||||
}
|
||||
}
|
||||
|
||||
@ -259,7 +259,7 @@ handle_touch_synthetic_crossing (GdkEvent *event)
|
||||
if (crossing)
|
||||
{
|
||||
gdk_display_put_event (gdk_device_get_display (device), crossing);
|
||||
gdk_event_free (crossing);
|
||||
g_object_unref (crossing);
|
||||
}
|
||||
}
|
||||
|
||||
@ -324,14 +324,14 @@ gdk_event_source_translate_event (GdkX11Display *x11_display,
|
||||
{
|
||||
if (result == GDK_FILTER_REMOVE)
|
||||
{
|
||||
gdk_event_free (event);
|
||||
g_object_unref (event);
|
||||
return NULL;
|
||||
}
|
||||
else /* GDK_FILTER_TRANSLATE */
|
||||
return event;
|
||||
}
|
||||
|
||||
gdk_event_free (event);
|
||||
g_object_unref (event);
|
||||
event = NULL;
|
||||
|
||||
if (event_translator)
|
||||
@ -499,7 +499,7 @@ gdk_event_source_dispatch (GSource *source,
|
||||
{
|
||||
_gdk_event_emit (event);
|
||||
|
||||
gdk_event_free (event);
|
||||
g_object_unref (event);
|
||||
}
|
||||
|
||||
gdk_threads_leave ();
|
||||
|
Loading…
Reference in New Issue
Block a user