[gtk/baselineoverlay: 2/3] widget: Stop embedding baseline debugging
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/baselineoverlay: 2/3] widget: Stop embedding baseline debugging
- Date: Mon, 13 May 2019 18:45:49 +0000 (UTC)
commit 1994d103cf5466437a24afab7a8a39c259f2d6f3
Author: Matthias Clasen <mclasen redhat com>
Date: Mon May 13 17:42:20 2019 +0000
widget: Stop embedding baseline debugging
The inspector has an overlay that achieves the
same, in a cleaner way.
gtk/gtkwidget.c | 18 ------------------
1 file changed, 18 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index bbc5ada6f6..b1e6571dc6 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -12878,24 +12878,6 @@ gtk_widget_maybe_add_debug_render_nodes (GtkWidget *widget,
GtkWidgetPrivate *priv = gtk_widget_get_instance_private (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);
- }
- }
-
#ifdef G_ENABLE_DEBUG
if (GTK_DISPLAY_DEBUG_CHECK (display, RESIZE) && priv->highlight_resize)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]