[gtk+] separator toolitem: Respect ::draw property
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] separator toolitem: Respect ::draw property
- Date: Sun, 3 Jan 2016 01:55:56 +0000 (UTC)
commit 8109520d4efda502b0141fa0e8482679fbb12fa7
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jan 2 20:53:54 2016 -0500
separator toolitem: Respect ::draw property
This was lost when I converted the widget to use a gadget.
https://bugzilla.gnome.org/show_bug.cgi?id=760018
gtk/gtkseparatortoolitem.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkseparatortoolitem.c b/gtk/gtkseparatortoolitem.c
index 6519d2d..57ad584 100644
--- a/gtk/gtkseparatortoolitem.c
+++ b/gtk/gtkseparatortoolitem.c
@@ -413,7 +413,8 @@ static gboolean
gtk_separator_tool_item_draw (GtkWidget *widget,
cairo_t *cr)
{
- gtk_css_gadget_draw (GTK_SEPARATOR_TOOL_ITEM (widget)->priv->gadget, cr);
+ if (GTK_SEPARATOR_TOOL_ITEM (widget)->priv->draw)
+ gtk_css_gadget_draw (GTK_SEPARATOR_TOOL_ITEM (widget)->priv->gadget, cr);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]