mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
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)
This commit is contained in:
parent
097eddf374
commit
f4ed8b2e2b
@ -3,6 +3,12 @@
|
|||||||
* gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Fix typo; tmp_event ->
|
* gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Fix typo; tmp_event ->
|
||||||
temp_event.
|
temp_event.
|
||||||
|
|
||||||
|
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>
|
2004-07-09 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
Make GtkEntry work harder to protect passwords: (#143955,
|
Make GtkEntry work harder to protect passwords: (#143955,
|
||||||
|
@ -3,6 +3,12 @@
|
|||||||
* gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Fix typo; tmp_event ->
|
* gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Fix typo; tmp_event ->
|
||||||
temp_event.
|
temp_event.
|
||||||
|
|
||||||
|
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>
|
2004-07-09 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
Make GtkEntry work harder to protect passwords: (#143955,
|
Make GtkEntry work harder to protect passwords: (#143955,
|
||||||
|
@ -3,6 +3,12 @@
|
|||||||
* gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Fix typo; tmp_event ->
|
* gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Fix typo; tmp_event ->
|
||||||
temp_event.
|
temp_event.
|
||||||
|
|
||||||
|
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>
|
2004-07-09 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
Make GtkEntry work harder to protect passwords: (#143955,
|
Make GtkEntry work harder to protect passwords: (#143955,
|
||||||
|
@ -3,6 +3,12 @@
|
|||||||
* gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Fix typo; tmp_event ->
|
* gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Fix typo; tmp_event ->
|
||||||
temp_event.
|
temp_event.
|
||||||
|
|
||||||
|
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>
|
2004-07-09 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
Make GtkEntry work harder to protect passwords: (#143955,
|
Make GtkEntry work harder to protect passwords: (#143955,
|
||||||
|
@ -380,10 +380,13 @@ gtk_tooltips_set_tip (GtkTooltips *tooltips,
|
|||||||
static gint
|
static gint
|
||||||
gtk_tooltips_paint_window (GtkTooltips *tooltips)
|
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_paint_flat_box (tooltips->tip_window->style, tooltips->tip_window->window,
|
||||||
GTK_STATE_NORMAL, GTK_SHADOW_OUT,
|
GTK_STATE_NORMAL, GTK_SHADOW_OUT,
|
||||||
NULL, GTK_WIDGET(tooltips->tip_window), "tooltip",
|
NULL, GTK_WIDGET(tooltips->tip_window), "tooltip",
|
||||||
0, 0, -1, -1);
|
0, 0, req.width, req.height);
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user