diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-07-09 18:07:09 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-07-09 18:07:09 +0000 |
commit | 1c575522c7766f6d1623f97c9d9fbe4fd204b49b (patch) | |
tree | c1a2570ac46c517ed3b9f41d2195d144f8ffb706 | |
parent | 4d67d33f02c0cc74eb48699c4a09e54967e3a097 (diff) | |
download | gdk-pixbuf-1c575522c7766f6d1623f97c9d9fbe4fd204b49b.tar.gz |
Use the requisition of the widget instead of relying on the style drawing
2004-07-09 Matthias Clasen <mclasen@redhat.com>
* 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)
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 6 | ||||
-rw-r--r-- | gtk/gtktooltips.c | 5 |
5 files changed, 28 insertions, 1 deletions
@@ -1,5 +1,11 @@ 2004-07-09 Matthias Clasen <mclasen@redhat.com> + * 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 <mclasen@redhat.com> + * NEWS: Updates. 2004-07-09 Matthias Clasen <mclasen@redhat.com> diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index de6be5170..b18609f54 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,11 @@ 2004-07-09 Matthias Clasen <mclasen@redhat.com> + * 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 <mclasen@redhat.com> + * NEWS: Updates. 2004-07-09 Matthias Clasen <mclasen@redhat.com> diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index de6be5170..b18609f54 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,11 @@ 2004-07-09 Matthias Clasen <mclasen@redhat.com> + * 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 <mclasen@redhat.com> + * NEWS: Updates. 2004-07-09 Matthias Clasen <mclasen@redhat.com> diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index de6be5170..b18609f54 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,11 @@ 2004-07-09 Matthias Clasen <mclasen@redhat.com> + * 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 <mclasen@redhat.com> + * NEWS: Updates. 2004-07-09 Matthias Clasen <mclasen@redhat.com> diff --git a/gtk/gtktooltips.c b/gtk/gtktooltips.c index 02f80ac98..482aba5e2 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; } |