Add missing gtk_widget_get_allocation()

In the change from widget->allocation to gtk_widget_get_allocation(),
one addition of gtk_widget_get_allocation() was missed. Add it.
This commit is contained in:
Owen W. Taylor 2010-05-10 14:28:07 -04:00
parent 8a25d49319
commit a90c81b2c7

View File

@ -399,7 +399,6 @@ na_tray_child_set_composited (NaTrayChild *child,
void void
na_tray_child_force_redraw (NaTrayChild *child) na_tray_child_force_redraw (NaTrayChild *child)
{ {
GtkAllocation allocation;
GtkWidget *widget = GTK_WIDGET (child); GtkWidget *widget = GTK_WIDGET (child);
if (gtk_widget_get_mapped (GTK_WIDGET (child)) && child->parent_relative_bg) if (gtk_widget_get_mapped (GTK_WIDGET (child)) && child->parent_relative_bg)
@ -410,8 +409,11 @@ na_tray_child_force_redraw (NaTrayChild *child)
* the redraw. It should be ok for GtkStatusIcon or EggTrayIcon. * the redraw. It should be ok for GtkStatusIcon or EggTrayIcon.
*/ */
Display *xdisplay = GDK_DISPLAY_XDISPLAY (gtk_widget_get_display (widget)); Display *xdisplay = GDK_DISPLAY_XDISPLAY (gtk_widget_get_display (widget));
GtkAllocation allocation;
XEvent xev; XEvent xev;
gtk_widget_get_allocation (widget, &allocation);
xev.xexpose.type = Expose; xev.xexpose.type = Expose;
xev.xexpose.window = GDK_WINDOW_XWINDOW (gtk_socket_get_plug_window (GTK_SOCKET (child))); xev.xexpose.window = GDK_WINDOW_XWINDOW (gtk_socket_get_plug_window (GTK_SOCKET (child)));
xev.xexpose.x = 0; xev.xexpose.x = 0;