mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
Merge branch 'wip/Jehan/GtkIMContextWayland-master' into 'master'
gtk: focus out the GtkIMContextWayland upon finalization. See merge request GNOME/gtk!2170
This commit is contained in:
commit
7170fdebb9
@ -93,6 +93,8 @@ struct _GtkIMContextWayland
|
||||
guint use_preedit : 1;
|
||||
};
|
||||
|
||||
static void gtk_im_context_wayland_focus_out (GtkIMContext *context);
|
||||
|
||||
G_DEFINE_TYPE_WITH_CODE (GtkIMContextWayland, gtk_im_context_wayland, GTK_TYPE_IM_CONTEXT_SIMPLE,
|
||||
gtk_im_module_ensure_extension_point ();
|
||||
g_io_extension_point_implement (GTK_IM_MODULE_EXTENSION_POINT_NAME,
|
||||
@ -476,6 +478,8 @@ gtk_im_context_wayland_finalize (GObject *object)
|
||||
{
|
||||
GtkIMContextWayland *context = GTK_IM_CONTEXT_WAYLAND (object);
|
||||
|
||||
gtk_im_context_wayland_focus_out (GTK_IM_CONTEXT (context));
|
||||
|
||||
g_clear_object (&context->widget);
|
||||
g_clear_object (&context->gesture);
|
||||
g_free (context->surrounding.text);
|
||||
|
Loading…
Reference in New Issue
Block a user