mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
gtk/gtkplug-x11.c: Use accessor functions to access GtkWidget
This commit is contained in:
parent
0a1130dcb9
commit
f25ad7899a
@ -56,25 +56,25 @@ static void xembed_set_info (GdkWindow *window,
|
||||
GdkNativeWindow
|
||||
_gtk_plug_windowing_get_id (GtkPlug *plug)
|
||||
{
|
||||
return GDK_WINDOW_XWINDOW (GTK_WIDGET (plug)->window);
|
||||
return GDK_WINDOW_XWINDOW (gtk_widget_get_window (GTK_WIDGET (plug)));
|
||||
}
|
||||
|
||||
void
|
||||
_gtk_plug_windowing_realize_toplevel (GtkPlug *plug)
|
||||
{
|
||||
xembed_set_info (GTK_WIDGET (plug)->window, 0);
|
||||
xembed_set_info (gtk_widget_get_window (GTK_WIDGET (plug)), 0);
|
||||
}
|
||||
|
||||
void
|
||||
_gtk_plug_windowing_map_toplevel (GtkPlug *plug)
|
||||
{
|
||||
xembed_set_info (GTK_WIDGET (plug)->window, XEMBED_MAPPED);
|
||||
xembed_set_info (gtk_widget_get_window (GTK_WIDGET (plug)), XEMBED_MAPPED);
|
||||
}
|
||||
|
||||
void
|
||||
_gtk_plug_windowing_unmap_toplevel (GtkPlug *plug)
|
||||
{
|
||||
xembed_set_info (GTK_WIDGET (plug)->window, 0);
|
||||
xembed_set_info (gtk_widget_get_window (GTK_WIDGET (plug)), 0);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user