forked from AuroraMiddleware/gtk
widget: Stop embedding baseline debugging
The inspector has an overlay that achieves the same, in a cleaner way.
This commit is contained in:
parent
4a978dc8c4
commit
643417dc32
@ -12055,24 +12055,6 @@ gtk_widget_maybe_add_debug_render_nodes (GtkWidget *widget,
|
|||||||
GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
|
GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
|
||||||
GdkDisplay *display = _gtk_widget_get_display (widget);
|
GdkDisplay *display = _gtk_widget_get_display (widget);
|
||||||
|
|
||||||
if (GTK_DISPLAY_DEBUG_CHECK (display, BASELINES))
|
|
||||||
{
|
|
||||||
if (priv->baseline != -1)
|
|
||||||
{
|
|
||||||
GdkRGBA red = {1, 0, 0, 1};
|
|
||||||
graphene_rect_t bounds;
|
|
||||||
|
|
||||||
/* Baselines are relative to the widget's origin,
|
|
||||||
* and we are offset to the widget's allocation here */
|
|
||||||
graphene_rect_init (&bounds,
|
|
||||||
0, priv->baseline,
|
|
||||||
priv->width, 1);
|
|
||||||
gtk_snapshot_append_color (snapshot,
|
|
||||||
&red,
|
|
||||||
&bounds);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (GTK_DISPLAY_DEBUG_CHECK (display, RESIZE) && priv->highlight_resize)
|
if (GTK_DISPLAY_DEBUG_CHECK (display, RESIZE) && priv->highlight_resize)
|
||||||
{
|
{
|
||||||
GdkRGBA blue = {0, 0, 1, 0.2};
|
GdkRGBA blue = {0, 0, 1, 0.2};
|
||||||
|
Loading…
Reference in New Issue
Block a user