- {
- GdkRectangle rect;
- calendar_arrow_rectangle (calendar, i, &rect);
-
- attributes.x = allocation.x + rect.x;
- attributes.y = allocation.y + rect.y;
- attributes.width = rect.width;
- attributes.height = rect.height;
- priv->arrow_win[i] = gdk_window_new (gtk_widget_get_window (widget),
- &attributes,
- attributes_mask);
-
- if (!gtk_widget_is_sensitive (widget))
- priv->arrow_state[i] = GTK_STATE_FLAG_INSENSITIVE;
-
- gdk_window_set_user_data (priv->arrow_win[i], widget);
- }
+ {
+ GdkRectangle rect;
+ calendar_arrow_rectangle (calendar, i, &rect);
+
+ attributes.x = allocation.x + rect.x;
+ attributes.y = allocation.y + rect.y;
+ attributes.width = rect.width;
+ attributes.height = rect.height;
+ priv->arrow_win[i] = gdk_window_new (gtk_widget_get_window (widget),
+ &attributes,
+ attributes_mask);
+
+ gtk_widget_register_window (widget, priv->arrow_win[i]);
+ }
+ priv->arrow_prelight = 0x0;