mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 10:20:07 +00:00
macos: simplify access to native widget.
This commit is contained in:
parent
62723f9f9b
commit
4294bca076
@ -273,8 +273,7 @@ quartz_set_client_surface (GtkIMContext *context,
|
||||
|
||||
if (widget != NULL)
|
||||
{
|
||||
GtkRoot *root = gtk_widget_get_root (widget);
|
||||
GtkNative *native = gtk_widget_get_native (GTK_WIDGET (root));
|
||||
GtkNative *native = GTK_NATIVE (gtk_widget_get_root (widget));
|
||||
|
||||
if (native != NULL)
|
||||
qc->client_surface = gtk_native_get_surface (native);
|
||||
|
Loading…
Reference in New Issue
Block a user