mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-03 17:21:11 +00:00
widget: Remove unused member
This commit is contained in:
parent
3ee2aa1b22
commit
2862ee7682
@ -11610,7 +11610,6 @@ void
|
|||||||
gtk_widget_register_surface (GtkWidget *widget,
|
gtk_widget_register_surface (GtkWidget *widget,
|
||||||
GdkSurface *surface)
|
GdkSurface *surface)
|
||||||
{
|
{
|
||||||
GtkWidgetPrivate *priv;
|
|
||||||
gpointer user_data;
|
gpointer user_data;
|
||||||
|
|
||||||
g_return_if_fail (GTK_IS_WIDGET (widget));
|
g_return_if_fail (GTK_IS_WIDGET (widget));
|
||||||
@ -11619,10 +11618,7 @@ gtk_widget_register_surface (GtkWidget *widget,
|
|||||||
gdk_surface_get_user_data (surface, &user_data);
|
gdk_surface_get_user_data (surface, &user_data);
|
||||||
g_assert (user_data == NULL);
|
g_assert (user_data == NULL);
|
||||||
|
|
||||||
priv = widget->priv;
|
|
||||||
|
|
||||||
gdk_surface_set_user_data (surface, widget);
|
gdk_surface_set_user_data (surface, widget);
|
||||||
priv->registered_surfaces = g_list_prepend (priv->registered_surfaces, surface);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -11638,18 +11634,14 @@ void
|
|||||||
gtk_widget_unregister_surface (GtkWidget *widget,
|
gtk_widget_unregister_surface (GtkWidget *widget,
|
||||||
GdkSurface *surface)
|
GdkSurface *surface)
|
||||||
{
|
{
|
||||||
GtkWidgetPrivate *priv;
|
|
||||||
gpointer user_data;
|
gpointer user_data;
|
||||||
|
|
||||||
g_return_if_fail (GTK_IS_WIDGET (widget));
|
g_return_if_fail (GTK_IS_WIDGET (widget));
|
||||||
g_return_if_fail (GDK_IS_SURFACE (surface));
|
g_return_if_fail (GDK_IS_SURFACE (surface));
|
||||||
|
|
||||||
priv = widget->priv;
|
|
||||||
|
|
||||||
gdk_surface_get_user_data (surface, &user_data);
|
gdk_surface_get_user_data (surface, &user_data);
|
||||||
g_assert (user_data == widget);
|
g_assert (user_data == widget);
|
||||||
gdk_surface_set_user_data (surface, NULL);
|
gdk_surface_set_user_data (surface, NULL);
|
||||||
priv->registered_surfaces = g_list_remove (priv->registered_surfaces, surface);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -157,7 +157,6 @@ struct _GtkWidgetPrivate
|
|||||||
* no_surface field being set).
|
* no_surface field being set).
|
||||||
*/
|
*/
|
||||||
GdkSurface *surface;
|
GdkSurface *surface;
|
||||||
GList *registered_surfaces;
|
|
||||||
|
|
||||||
GList *event_controllers;
|
GList *event_controllers;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user