[gtk+/gtk-3-0] window: Only draw the resize grip if it is actually visible
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-0] window: Only draw the resize grip if it is actually visible
- Date: Sat, 16 Apr 2011 22:56:19 +0000 (UTC)
commit 0cf31b35eb10cb5bc08048ecdc141c949efec4cc
Author: Benjamin Otte <otte redhat com>
Date: Sat Apr 16 21:48:05 2011 +0200
window: Only draw the resize grip if it is actually visible
This issue can only be seen if someone calls gtk_widget_draw() on the
window as otherwise gtk_cairo_should_draw_window() would return FALSE.
gtk/gtkwindow.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 9b885ae..186809c 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -7304,7 +7304,7 @@ gtk_window_draw (GtkWidget *widget,
if (GTK_WIDGET_CLASS (gtk_window_parent_class)->draw)
ret = GTK_WIDGET_CLASS (gtk_window_parent_class)->draw (widget, cr);
- if (priv->grip_window != NULL &&
+ if (priv->resize_grip_visible &&
gtk_cairo_should_draw_window (cr, priv->grip_window))
{
GdkRectangle rect;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]