[gtk+] paned: Draw handle before children
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] paned: Draw handle before children
- Date: Fri, 12 Feb 2016 23:16:08 +0000 (UTC)
commit 102b3bfddf9a5d76c4b70d8e6106aac088b6f22b
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Feb 12 18:09:41 2016 -0500
paned: Draw handle before children
gtk/gtkpaned.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index f49c1af..0e21a88 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -1803,17 +1803,17 @@ gtk_paned_render (GtkCssGadget *gadget,
cairo_rectangle (cr, x, y, width, height);
cairo_clip (cr);
+ if (gtk_cairo_should_draw_window (cr, gtk_widget_get_window (widget)) &&
+ priv->child1 && gtk_widget_get_visible (priv->child1) &&
+ priv->child2 && gtk_widget_get_visible (priv->child2))
+ gtk_css_gadget_draw (priv->handle_gadget, cr);
+
if (gtk_cairo_should_draw_window (cr, priv->child1_window))
gtk_container_propagate_draw (GTK_CONTAINER (widget), priv->child1, cr);
if (gtk_cairo_should_draw_window (cr, priv->child2_window))
gtk_container_propagate_draw (GTK_CONTAINER (widget), priv->child2, cr);
- if (gtk_cairo_should_draw_window (cr, gtk_widget_get_window (widget)) &&
- priv->child1 && gtk_widget_get_visible (priv->child1) &&
- priv->child2 && gtk_widget_get_visible (priv->child2))
- gtk_css_gadget_draw (priv->handle_gadget, cr);
-
cairo_restore (cr);
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]