mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 14:30:15 +00:00
widget: Move _gtk_widget_peek_request_cache to private.h
This commit is contained in:
parent
20c49b8837
commit
09e4f753fd
@ -10627,7 +10627,7 @@ gtk_widget_get_screen_unchecked (GtkWidget *widget)
|
||||
if (_gtk_widget_is_toplevel (toplevel))
|
||||
{
|
||||
if (GTK_IS_WINDOW (toplevel))
|
||||
return gtk_window_get_screen (GTK_WINDOW (toplevel));
|
||||
return _gtk_window_get_screen (GTK_WINDOW (toplevel));
|
||||
else if (GTK_IS_INVISIBLE (toplevel))
|
||||
return gtk_invisible_get_screen (GTK_INVISIBLE (widget));
|
||||
}
|
||||
@ -12402,21 +12402,6 @@ gtk_widget_real_adjust_baseline_request (GtkWidget *widget,
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* _gtk_widget_peek_request_cache:
|
||||
*
|
||||
* Returns the address of the widget’s request cache (strictly for
|
||||
* internal use in gtksizerequest.c)
|
||||
*
|
||||
* Returns: the address of @widget’s size request cache.
|
||||
**/
|
||||
gpointer
|
||||
_gtk_widget_peek_request_cache (GtkWidget *widget)
|
||||
{
|
||||
/* Don't bother slowing things down with the return_if_fail guards here */
|
||||
return &widget->priv->requests;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
is_my_window (GtkWidget *widget,
|
||||
GdkWindow *window)
|
||||
|
@ -248,7 +248,7 @@ void _gtk_widget_synthesize_crossing (GtkWidget *fro
|
||||
GdkDevice *device,
|
||||
GdkCrossingMode mode);
|
||||
|
||||
gpointer _gtk_widget_peek_request_cache (GtkWidget *widget);
|
||||
static inline gpointer _gtk_widget_peek_request_cache (GtkWidget *widget);
|
||||
|
||||
void _gtk_widget_buildable_finish_accelerator (GtkWidget *widget,
|
||||
GtkWidget *toplevel,
|
||||
@ -368,6 +368,12 @@ _gtk_widget_get_style_context (GtkWidget *widget)
|
||||
return gtk_widget_get_style_context (widget);
|
||||
}
|
||||
|
||||
static inline gpointer
|
||||
_gtk_widget_peek_request_cache (GtkWidget *widget)
|
||||
{
|
||||
return &widget->priv->requests;
|
||||
}
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GTK_WIDGET_PRIVATE_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user