forked from AuroraMiddleware/gtk
gtk/native: Remove gtk_native_check_resize()
This is now handle by the corresponding implemenatations using per non-gobject-type API.
This commit is contained in:
parent
4b2aae9950
commit
40a9baa2db
@ -6970,7 +6970,6 @@ GtkNative
|
||||
gtk_native_get_for_surface
|
||||
gtk_native_get_surface
|
||||
gtk_native_get_renderer
|
||||
gtk_native_check_resize
|
||||
gtk_native_get_surface_transform
|
||||
|
||||
<SUBSECTION Private>
|
||||
|
@ -146,11 +146,6 @@ gtk_drag_icon_move_resize (GtkDragIcon *icon)
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_drag_icon_native_check_resize (GtkNative *native)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_drag_icon_present (GtkDragIcon *icon)
|
||||
{
|
||||
@ -176,7 +171,6 @@ gtk_drag_icon_native_init (GtkNativeInterface *iface)
|
||||
iface->get_surface = gtk_drag_icon_native_get_surface;
|
||||
iface->get_renderer = gtk_drag_icon_native_get_renderer;
|
||||
iface->get_surface_transform = gtk_drag_icon_native_get_surface_transform;
|
||||
iface->check_resize = gtk_drag_icon_native_check_resize;
|
||||
iface->layout = gtk_drag_icon_native_layout;
|
||||
}
|
||||
|
||||
|
@ -373,7 +373,8 @@ allocate_native_children (GtkWidget *widget)
|
||||
else if (GTK_IS_TOOLTIP_WINDOW (child))
|
||||
gtk_tooltip_window_present (GTK_TOOLTIP_WINDOW (child));
|
||||
else if (GTK_IS_NATIVE (child))
|
||||
gtk_native_check_resize (GTK_NATIVE (child));
|
||||
g_warning ("Unable to present a to the layout manager unknown auxiliary child surface widget type %s",
|
||||
G_OBJECT_TYPE_NAME (child));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -63,11 +63,6 @@ gtk_native_default_get_surface_transform (GtkNative *self,
|
||||
*y = 0;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_native_default_check_resize (GtkNative *self)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_native_default_layout (GtkNative *self,
|
||||
int width,
|
||||
@ -80,7 +75,6 @@ gtk_native_default_init (GtkNativeInterface *iface)
|
||||
{
|
||||
iface->get_renderer = gtk_native_default_get_renderer;
|
||||
iface->get_surface_transform = gtk_native_default_get_surface_transform;
|
||||
iface->check_resize = gtk_native_default_check_resize;
|
||||
iface->layout = gtk_native_default_layout;
|
||||
|
||||
quark_gtk_native_private = g_quark_from_static_string ("gtk-native-private");
|
||||
@ -225,23 +219,6 @@ gtk_native_get_surface_transform (GtkNative *self,
|
||||
return GTK_NATIVE_GET_IFACE (self)->get_surface_transform (self, x, y);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_native_check_resize:
|
||||
* @self: a #GtkNative
|
||||
*
|
||||
* Reposition and resize a #GtkNative.
|
||||
*
|
||||
* Widgets need to call this function on their attached
|
||||
* native widgets when they receive a new size allocation.
|
||||
*/
|
||||
void
|
||||
gtk_native_check_resize (GtkNative *self)
|
||||
{
|
||||
g_return_if_fail (GTK_IS_NATIVE (self));
|
||||
|
||||
GTK_NATIVE_GET_IFACE (self)->check_resize (self);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_native_get_for_surface:
|
||||
* @surface: a #GdkSurface
|
||||
|
@ -43,9 +43,6 @@ void gtk_native_unrealize (GtkNative *self);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GtkNative * gtk_native_get_for_surface (GdkSurface *surface);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_native_check_resize (GtkNative *self);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GdkSurface *gtk_native_get_surface (GtkNative *self);
|
||||
|
||||
|
@ -23,8 +23,6 @@ struct _GtkNativeInterface
|
||||
double *x,
|
||||
double *y);
|
||||
|
||||
void (* check_resize) (GtkNative *self);
|
||||
|
||||
void (* layout) (GtkNative *self,
|
||||
int width,
|
||||
int height);
|
||||
|
@ -588,11 +588,6 @@ gtk_popover_present (GtkPopover *popover)
|
||||
present_popup (popover);
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_popover_native_check_resize (GtkNative *native)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
maybe_request_motion_event (GtkPopover *popover)
|
||||
{
|
||||
@ -1884,7 +1879,6 @@ gtk_popover_native_interface_init (GtkNativeInterface *iface)
|
||||
iface->get_surface = gtk_popover_native_get_surface;
|
||||
iface->get_renderer = gtk_popover_native_get_renderer;
|
||||
iface->get_surface_transform = gtk_popover_native_get_surface_transform;
|
||||
iface->check_resize = gtk_popover_native_check_resize;
|
||||
iface->layout = gtk_popover_native_layout;
|
||||
}
|
||||
|
||||
|
@ -164,11 +164,6 @@ gtk_text_handle_present_surface (GtkTextHandle *handle)
|
||||
gdk_popup_layout_unref (layout);
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_text_handle_native_check_resize (GtkNative *native)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
gtk_text_handle_present (GtkTextHandle *handle)
|
||||
{
|
||||
@ -199,7 +194,6 @@ gtk_text_handle_native_interface_init (GtkNativeInterface *iface)
|
||||
iface->get_surface = gtk_text_handle_native_get_surface;
|
||||
iface->get_renderer = gtk_text_handle_native_get_renderer;
|
||||
iface->get_surface_transform = gtk_text_handle_native_get_surface_transform;
|
||||
iface->check_resize = gtk_text_handle_native_check_resize;
|
||||
iface->layout = gtk_text_handle_native_layout;
|
||||
}
|
||||
|
||||
|
@ -139,11 +139,6 @@ gtk_tooltip_window_relayout (GtkTooltipWindow *window)
|
||||
gdk_popup_layout_unref (layout);
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_tooltip_window_native_check_resize (GtkNative *native)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
gtk_tooltip_window_present (GtkTooltipWindow *window)
|
||||
{
|
||||
@ -179,7 +174,6 @@ gtk_tooltip_window_native_init (GtkNativeInterface *iface)
|
||||
iface->get_surface = gtk_tooltip_window_native_get_surface;
|
||||
iface->get_renderer = gtk_tooltip_window_native_get_renderer;
|
||||
iface->get_surface_transform = gtk_tooltip_window_native_get_surface_transform;
|
||||
iface->check_resize = gtk_tooltip_window_native_check_resize;
|
||||
iface->layout = gtk_tooltip_window_native_layout;
|
||||
}
|
||||
|
||||
@ -358,7 +352,7 @@ gtk_tooltip_window_show (GtkWidget *widget)
|
||||
{
|
||||
_gtk_widget_set_visible_flag (widget, TRUE);
|
||||
gtk_widget_realize (widget);
|
||||
gtk_tooltip_window_native_check_resize (GTK_NATIVE (widget));
|
||||
gtk_tooltip_window_present (GTK_TOOLTIP_WINDOW (widget));
|
||||
gtk_widget_map (widget);
|
||||
}
|
||||
|
||||
|
@ -1870,11 +1870,6 @@ gtk_window_native_get_surface_transform (GtkNative *native,
|
||||
*y = shadow.top - margin_rect->origin.y;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_window_native_check_resize (GtkNative *native)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_window_native_layout (GtkNative *native,
|
||||
int width,
|
||||
@ -1946,7 +1941,6 @@ gtk_window_native_interface_init (GtkNativeInterface *iface)
|
||||
iface->get_surface = gtk_window_native_get_surface;
|
||||
iface->get_renderer = gtk_window_native_get_renderer;
|
||||
iface->get_surface_transform = gtk_window_native_get_surface_transform;
|
||||
iface->check_resize = gtk_window_native_check_resize;
|
||||
iface->layout = gtk_window_native_layout;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user