};
ruler_type = g_type_register_static (GTK_TYPE_WIDGET, "GtkCustomRuler",
- &ruler_info, 0);
+ &ruler_info, (GTypeFlags)0);
}
return ruler_type;
const GValue *value,
GParamSpec *pspec)
{
- (void) pspec;
-
GtkCustomRuler *ruler = GTK_CUSTOM_RULER (object);
+ (void) pspec;
switch (prop_id)
{
gtk_custom_ruler_draw_ticks (ruler);
- gdk_draw_pixmap (widget->window,
- ruler->non_gr_exp_gc,
- ruler->backing_store, 0, 0, 0, 0, widget->allocation.width, widget->allocation.height);
+ gdk_draw_drawable (widget->window,
+ ruler->non_gr_exp_gc,
+ GDK_DRAWABLE(ruler->backing_store), 0, 0, 0, 0, widget->allocation.width, widget->allocation.height);
gtk_custom_ruler_draw_pos (ruler);
}