mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 23:00:08 +00:00
Merge branch 'set-client-widget-nullable' into 'master'
gtkimcontextxim: fix gtk_im_context_xim_set_client_widget not handling widget=NULL See merge request GNOME/gtk!46
This commit is contained in:
commit
aa175ec2f5
@ -575,9 +575,12 @@ gtk_im_context_xim_set_client_widget (GtkIMContext *context,
|
||||
GtkWidget *widget)
|
||||
{
|
||||
GtkIMContextXIM *context_xim = GTK_IM_CONTEXT_XIM (context);
|
||||
GtkWidget *toplevel = gtk_widget_get_toplevel (widget);
|
||||
GdkWindow *window = NULL;
|
||||
|
||||
set_ic_client_window (context_xim, gtk_widget_get_window (toplevel));
|
||||
if (widget != NULL)
|
||||
window = gtk_widget_get_window (gtk_widget_get_toplevel (widget));
|
||||
|
||||
set_ic_client_window (context_xim, window);
|
||||
}
|
||||
|
||||
GtkIMContext *
|
||||
|
Loading…
Reference in New Issue
Block a user