[gtk+/gtk-3-2] GtkStatusbar: Fix resize-grip overlap calculation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-2] GtkStatusbar: Fix resize-grip overlap calculation
- Date: Mon, 12 Mar 2012 02:56:30 +0000 (UTC)
commit c1ff1c398c77877ae63be8a3acc400b027c23e22
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 3a7df17..94cca87 100644
--- a/gtk/gtkstatusbar.c
+++ b/gtk/gtkstatusbar.c
@@ -664,12 +664,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]