From f4ed8b2e2baf1c2da23a724e9dee589c65199946 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 9 Jul 2004 18:08:35 +0000 Subject: [PATCH] Use the requisition of the widget instead of relying on the style drawing 2004-07-09 Matthias Clasen * gtk/gtktooltips.c (gtk_tooltips_paint_window): Use the requisition of the widget instead of relying on the style drawing function to supply the size of the drawable. (#146531) --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gtk/gtktooltips.c | 5 ++++- 5 files changed, 28 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d83d7901c8..2ade6a8a1a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,12 @@ * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Fix typo; tmp_event -> temp_event. +2004-07-09 Matthias Clasen + + * gtk/gtktooltips.c (gtk_tooltips_paint_window): Use the + requisition of the widget instead of relying on the style + drawing function to supply the size of the drawable. (#146531) + 2004-07-09 Matthias Clasen Make GtkEntry work harder to protect passwords: (#143955, diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index d83d7901c8..2ade6a8a1a 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -3,6 +3,12 @@ * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Fix typo; tmp_event -> temp_event. +2004-07-09 Matthias Clasen + + * gtk/gtktooltips.c (gtk_tooltips_paint_window): Use the + requisition of the widget instead of relying on the style + drawing function to supply the size of the drawable. (#146531) + 2004-07-09 Matthias Clasen Make GtkEntry work harder to protect passwords: (#143955, diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index d83d7901c8..2ade6a8a1a 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -3,6 +3,12 @@ * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Fix typo; tmp_event -> temp_event. +2004-07-09 Matthias Clasen + + * gtk/gtktooltips.c (gtk_tooltips_paint_window): Use the + requisition of the widget instead of relying on the style + drawing function to supply the size of the drawable. (#146531) + 2004-07-09 Matthias Clasen Make GtkEntry work harder to protect passwords: (#143955, diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index d83d7901c8..2ade6a8a1a 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -3,6 +3,12 @@ * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Fix typo; tmp_event -> temp_event. +2004-07-09 Matthias Clasen + + * gtk/gtktooltips.c (gtk_tooltips_paint_window): Use the + requisition of the widget instead of relying on the style + drawing function to supply the size of the drawable. (#146531) + 2004-07-09 Matthias Clasen Make GtkEntry work harder to protect passwords: (#143955, diff --git a/gtk/gtktooltips.c b/gtk/gtktooltips.c index 02f80ac98d..482aba5e23 100644 --- a/gtk/gtktooltips.c +++ b/gtk/gtktooltips.c @@ -380,10 +380,13 @@ gtk_tooltips_set_tip (GtkTooltips *tooltips, static gint gtk_tooltips_paint_window (GtkTooltips *tooltips) { + GtkRequisition req; + + gtk_widget_size_request (tooltips->tip_window, &req); gtk_paint_flat_box (tooltips->tip_window->style, tooltips->tip_window->window, GTK_STATE_NORMAL, GTK_SHADOW_OUT, NULL, GTK_WIDGET(tooltips->tip_window), "tooltip", - 0, 0, -1, -1); + 0, 0, req.width, req.height); return FALSE; }