[gtk+] GtkStatusbar: Fix resize-grip overlap calculation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkStatusbar: Fix resize-grip overlap calculation
- Date: Sun, 15 Jan 2012 01:36:02 +0000 (UTC)
commit b0936a12d95088de0d5798d6adbe4cdca0feec4d
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jan 14 19:53:48 2012 -0500
GtkStatusbar: Fix resize-grip overlap calculation
The allocation is relative to the window, so the way the statusbar
was doing the overlap calculation was wrong.
gtk/gtkstatusbar.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkstatusbar.c b/gtk/gtkstatusbar.c
index 8548ec2..0d4226c 100644
--- a/gtk/gtkstatusbar.c
+++ b/gtk/gtkstatusbar.c
@@ -666,12 +666,7 @@ gtk_statusbar_size_allocate (GtkWidget *widget,
gtk_window_resize_grip_is_visible (GTK_WINDOW (window)))
{
gtk_window_get_resize_grip_area (GTK_WINDOW (window), &rect);
- if (gtk_widget_translate_coordinates (gtk_widget_get_parent (widget),
- window,
- allocation->x,
- allocation->y,
- &x,
- &y))
+ if (gtk_widget_translate_coordinates (widget, window, 0, 0, &x, &y))
{
translated_rect.x = x;
translated_rect.y = y;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]