summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2004-07-09 18:07:09 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-07-09 18:07:09 +0000
commit1c575522c7766f6d1623f97c9d9fbe4fd204b49b (patch)
treec1a2570ac46c517ed3b9f41d2195d144f8ffb706
parent4d67d33f02c0cc74eb48699c4a09e54967e3a097 (diff)
downloadgdk-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--ChangeLog6
-rw-r--r--ChangeLog.pre-2-106
-rw-r--r--ChangeLog.pre-2-66
-rw-r--r--ChangeLog.pre-2-86
-rw-r--r--gtk/gtktooltips.c5
5 files changed, 28 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index de6be5170..b18609f54 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;
}